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
Vigneshwaran LoganathanVigneshwaran Loganathan 

What is setSaveAsActivity(Boolean) i have used it in Sending email and got result perfectly, but what it means? CAn anyone explain in a good manner

BalajiRanganathanBalajiRanganathan
when you set setSaveAsActivity to true, salesforce tracks the Html email(to know if html email is opened and how many time opened etc). when you set this you also need to set
mail.setTargetObjectId(contact.id);//The ID of the contact, lead, or user to which the email will be sent.

https://help.salesforce.com/apex/HTViewSolution?id=000006731&language=en_US

 
dlvdlv
No it isn't. You're confusing tracking emails and saving an email as an activity.