• pchal
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Please help me how to to send an email using EmailTemplate with letterhead information? Am I missing something here.
 
'targetObjectId' - sets the context and ensures that merge fields in the template contain the correct data.
'templateId'  - The ID of the template to be merged to create this email.
 

//create single email message

var request = new sforce.SingleEmailMessage();

//set id

request.targetObjectId = id;

//set email template id

request.templateId = emailTemplateId;

//send email

var result = sforce.connection.sendEmail([request]);

if (!result[0].getBoolean("success")) {

throw(result[0]);

}

  • February 23, 2008
  • Like
  • 0
Can anybody help, When I make a call to EmailAuthorFrame.jsp, what are the params to pass to make it editable? Preview works with this URL: 
 
URL = "/email/author/emailauthorframe.jsp?email_type=html&template_id="+gEmailTemplateId+"&id="+id+"&p2_lkid="+p2_lkid+"&p3_lkid="+p3_lkid+"&preview=1";
 
Thanks in advance.
  • February 21, 2008
  • Like
  • 0