Sending mail using custom PHP
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 .
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 <table><h5> <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. </tr> <tr> <b>Incident Details</b> \n Created Time : $incident->CreatedTime \n Channel : $incident->Channel->LookupName \n </tr></h5></table>";