Skip to main content
7 events
when toggle format what by license comment
Apr 11, 2018 at 21:00 vote accept Rory
Apr 11, 2018 at 20:10 answer added Pranay Jaiswal timeline score: 1
Apr 11, 2018 at 20:09 comment added battery.cord Oen nitpick with your post - you say you have a template which takes a user and a opportunity, but you provide a contact id for the targetobjectId? Do you provide a user id when testing through the UI, or a contact Id?
Apr 11, 2018 at 20:08 comment added battery.cord Maybe a reduced version which still behaves the same? Removing all of the markup except for a field value or two for testing?
Apr 11, 2018 at 20:06 comment added Rory I have tested the email template with the 'Send Test and Verify Merge Fields' button and I have tried sending it to myself (I added myself as a contact in Salesforce) from the Salesforce UI and it works in both cases. The controller and visualforce component are lengthy, if you need to see them still I will post it.
Apr 11, 2018 at 20:00 comment added battery.cord You should include the code for the email, the template markup & any controllers associated with it. You said it yourself, the email sends & arrives fine, but the body is blank, so its probably not an issue with your sending code, but your email template.
Apr 11, 2018 at 19:53 history asked Rory CC BY-SA 3.0