You need to sign in to do that
Don't have an account?
Chitral Chadda
How to keep track of html email sent through code
Is there any workaroud to check that email is opened or not, no. of times openen etc for emails sent through code.??
Bcz HTML email status reports builts reports for emails based on html email template .
can we track all those html email which are sent through code ?
heelo balaji, thankyou tons !!
Error: Invalid Data.If on account , type agriculture is selected for industry then on contact insertion it should send email .
I was able to send email before using :
mail.setTargetObjectId(a.id);
mail.setSaveAsActivity(true);
but now i get error
Review all error messages below to correct your data.
Apex trigger definename caused an unexpected exception, contact your administrator: definename: execution of AfterInsert caused by: System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_TYPE_FOR_OPERATION, Only Users, Contact or Lead allowed for targetObjectId : 0019000001BFdA0.: []: Trigger.definename: line 27, column 1
I get this error also i cant find the realted list of HTML email to add on the account page layout ?
All Answers
also while using this you need to have set mail.setTargetObjectId(), The ID of the contact, lead, or user to which the email will be sent
refer the link below to see where you can see the status and how it tracks and limitations.
https://help.salesforce.com/HTViewHelpDoc?id=email_track.htm&language=en_US
https://help.salesforce.com/apex/HTViewSolution?id=000006731&language=en_US
mail.setTargetObjectId()) and you can see the status as a related list.
the belwo is from the first link
Detail pages for contacts, leads, and person accounts include an HTML Email Status related list. Each email you send to a person or mass distribution list is listed, including the date the email was sent, first opened, last opened, and the total number of times it was opened by all users (multiple openings by the same user are counted)
mail.setTargetObjectId(c.id); //The ID of the contact, lead, or user to which the email will be sent
heelo balaji, thankyou tons !!
Error: Invalid Data.If on account , type agriculture is selected for industry then on contact insertion it should send email .
I was able to send email before using :
mail.setTargetObjectId(a.id);
mail.setSaveAsActivity(true);
but now i get error
Review all error messages below to correct your data.
Apex trigger definename caused an unexpected exception, contact your administrator: definename: execution of AfterInsert caused by: System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_TYPE_FOR_OPERATION, Only Users, Contact or Lead allowed for targetObjectId : 0019000001BFdA0.: []: Trigger.definename: line 27, column 1
I get this error also i cant find the realted list of HTML email to add on the account page layout ?
mail.setTargetObjectId(c.id); //The ID of the contact, lead, or user to which the email will be sent
When i send the image in the htmlbody using img tag , i have stored the image in document .
but the HTML email status (related list ) dosent show the count of email opened ?
i have checked "externally available use" checkbox on document also ..
HTML email status showing 0 ,#times opened even though i have opened the mail .
1 more thing i am able to see that image from my cell phone but , when i login desktop i cant see any image there in the mail .
i cudnt find any help on the net.