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
mark TMmark TM 

Email alert java script error

Hi ,

 

 I have a button in case object called "Email to customer" which will automatically send an email to all customers , but i am having issues that emails are not getting delivered appropriatrely, Below is my java script,

 

{!REQUIRESCRIPT("/soap/ajax/25.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/25.0/apex.js")}
{!REQUIRESCRIPT("/support/console/26.0/integration.js")}


var url = '/_ui/core/email/author/EmailAuthor?p2_lkid={!Case.ContactId}&p2={!Case.Contact}&rtype={!$ObjectType.Contact}&p3_lkid={!Case.Id}&&p3={!Case.CaseNumber}&retURL=%2F{!Case.Id}&p26=customercare.test@wisdompanel.com&template_id=00Xe0000000IIvA&p6=';

if(sforce.console.isInConsole() == true) { //create a sub tab when accessing the case from console
//First find the ID of the primary tab to put the new subtab in
sforce.console.getEnclosingPrimaryTabId(openSubtab);
}
else
window.open(url); // redirect to the send email screen

function openSubtab(result) {
sforce.console.openSubtab(result.id,url,true);
}

 

Please help me on this regard.

 

Thanks in Advance

Sonam_SFDCSonam_SFDC

Hi Mark,

 

Did you happen to check the email logs to see if the email was recorded there and there was a delivery issue -

(From Setup, click Monitoring | Email Log Files or Logs | Email Log Files)

 

or are we saying the email was never sent from the system?