function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bryanobryano 

Flex, sending an attachment with sendEmail() call.

Hi, I was wondering if there is a way to send an attachment using the sendEmail() of a SingleEmailMessage object.  I've looked over the API and it doesn't seem like there is support for this.

Thanks.
DevAngelDevAngel
Attachments on email are not supported in the current version of the sendMail api.  It is my understanding that winter 08 will support this.



Always ThinkinAlways Thinkin
Looks like Salesforce made good on that promise in Winter 08, details are in the API Guide here.

Now, I just need figure out how to package up report data and send it as an attachment all from one convenient button...