Per the Apex docs, the setFileAttachments() method only exists on SingleEmailMessage, so no.
However, you could just instantiate a number of SingleEmailMessage instances in a loop, one per recipient, and add attachments to those. You can only call sendEmail 10 times per Apex invocation, but each call to sendEmail can take a List of SingleEmailMessages.
Per the Apex docs, the setFileAttachments() method only exists on SingleEmailMessage, so no.
However, you could just instantiate a number of SingleEmailMessage instances in a loop, one per recipient, and add attachments to those. You can only call sendEmail 10 times per Apex invocation, but each call to sendEmail can take a List of SingleEmailMessages.
MassMailer Attachments Send Large Files and Control How Long They’re Available.
Have you ever wanted to send out a whitepaper, pricing sheet, product PDF, or other unique or large file, but you weren’t sure how? MassMailer Attachments is the answer you’re looking for. Share files with your contacts without any fuss and without having to use multiple services.
For this, you can visit and play with this app free trail for 15 days -
Per the Apex docs, the setFileAttachments() method only exists on SingleEmailMessage, so no.
However, you could just instantiate a number of SingleEmailMessage instances in a loop, one per recipient, and add attachments to those. You can only call sendEmail 10 times per Apex invocation, but each call to sendEmail can take a List of SingleEmailMessages.
HTH
Jeremy Kraybill
All Answers
Per the Apex docs, the setFileAttachments() method only exists on SingleEmailMessage, so no.
However, you could just instantiate a number of SingleEmailMessage instances in a loop, one per recipient, and add attachments to those. You can only call sendEmail 10 times per Apex invocation, but each call to sendEmail can take a List of SingleEmailMessages.
HTH
Jeremy Kraybill
Hi Jeremy.
Thanks for the reply. In the end this is what I did - the loop with the sendMail invocation.
However, I was unaware of the 10 mails per Apex invocation restricition.
This isn't a concern though.
Thanks again for your reply
MassMailer Attachments Send Large Files and Control How Long They’re Available.
Have you ever wanted to send out a whitepaper, pricing sheet, product PDF, or other unique or large file, but you weren’t sure how? MassMailer Attachments is the answer you’re looking for. Share files with your contacts without any fuss and without having to use multiple services.
For this, you can visit and play with this app free trail for 15 days -
https://appexchange.salesforce.com/listingDetail?listingId=a0N30000005uxj5EAA
Do you want to know more details click here https://goo.gl/e0RtSm
Regards
Venu E