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:

All other Modules /

Discuss all other Modules here.

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

email send with multiple attachments (SS3)


Go to End


3 Posts   1650 Views

Avatar
dh

Community Member, 13 Posts

10 December 2012 at 9:36pm

Edited: 11/12/2012 3:37am

hi,
how can i send an email with 2 or 3 attachments? i used $_variable->attachFile('path') for 1 attachment. but more?

best regards
dh

Avatar
Willr

Forum Moderator, 5523 Posts

11 December 2012 at 7:59pm

You can call attachFile() many times.

$email->attachFile('1');
$email->attachFile('2');

Avatar
dh

Community Member, 13 Posts

11 December 2012 at 8:37pm

oO ok, it's work ;)