Home

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

Its nice to know more people is using silverstripe every day :)

Comments (0)

No one has commented on this page yet.

RSS feed for comments on this page RSS feed for all comments

Post your comment