You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Sending mail using custom PHP

Accepted answer
edited Sep 4, 2017 2:03PM in Integrations and APIs 3 comments


Hi Team,


I want to send mail when an incident severity is changed . Mail is getting sent only when the body is simple but when i include incident information in the body the mail is not getting sent.


Not working code : Mail is not getting sent out if i include some incident information in to the mail body.


Please suggest me a solution to solve this issue .


Service cloud

Code Snippet

             working code :
$mm->Body->Html ="<h4>Hi Team Member , <br> The severity of the incident assigned to you has been changed to a new level . Request you to resolve the incident at the earliest.<br>
      Best Regards,<br> Air Arabia	</h4>";

Not working code : 

 $mm->Body->Html = "<h3>Incident severity notification</h3>\n
		<tr>  Hi $incident->AssignedTo->Account->LookupName , \n
		The Severity of the incident assigned to your accoount is changed . The details of the incident are given below.
		<b>Incident Details</b> 			\n
		Created Time 				: $incident->CreatedTime \n
		Channel 					: $incident->Channel->LookupName \n

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!