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
System Administrator 224System Administrator 224 

ENCODED_TEMPLATE:ENCODED:

Using a lightning email template in a lightning component to send an email in Summer '18 Sandbox we see the Email has
Subject preceded by ENCODED_TEMPLATE:ENCODED:
and the first line of the body set to ENCODED_TEMPLATE:ENCODED:
The Template works fine when the email is sent manually (no such additional text).
The email is sent OK in both cases and the activity and Email object are created OK in Salesforce, but the email sent by the Lightning component has the above additional text - any ideas what might cause this?
System Administrator 224System Administrator 224
Only seems to be a problem with HTML email templates.