Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Email attachment

Go to End



Community Member, 1 Post

21 October 2008 at 6:39am

Hi there,

I am trying to figure out how to email an attachment using the default SS email handler.

 $email = new Email($from, $to, $subject, $body, $attachment);

I know the above is the syntax to send and email, but what is the syntax to attach an attachment?

Thank you for your help