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

Send email to account using web service api

Hi all!


I need to send email to some account programmatically from my application.

Is it possible to do it via web service API ? For email message I need to use some existing templates. This templates i can get from EmailTemlate object. Maybe it's possible to send email in the same way as I make for example a task for some users via web service API.


Thanks !

Best Answer chosen by Admin (Salesforce Developers) 

All Answers


Simon, thank you! That's great! 


I have an additional question: 


SingleEmailMessage has a 'saveAsActivity' field. Does it mean that if this field equal to true this email will be displayed in activity history ? And who in this case will be displayed in the 'Assigned to' field.