05
Jan
1
Add attachments to Silverstripe Form submissions
Today I was trying to add a CV file to a silverstripe form for a project and noticed that is not that easy as it sounds. Well with the help of Martijn we figured it out:
First the form
It's a really simple form but it takes the information we want. Now the function that sends the mail:
With the use of this little function you will get the file uploaded and attached to your email.
amazingly simple isn't it?
About the Author
Name: Francisco Arenas
Website: www.dospuntocero.cl
With experience in more than 5 countries, at Dospuntocero Ltd we provide quality SilverStripe services such as custom module development, psd to SilverStripe, themes and templating for designers.
Comments (1)
-
How about working with images?
do you use $_FILES or?Posted by PAt, 11/04/2010 8:30am (4 months ago)
RSS feed for comments on this page RSS feed for all comments