note4

Monday, November 12, 2018

12:44 AM
//**********  Send email with new data  

$email="a.sample@gmail.com";// your email, please change
$msg="";
$subject="From Edit Supplier Card";
$msg.="<html> 
<head> 
<title>Title Line Goes Here</title> 
</head> 
<body> 
<img src=\"http://xxxxxx/supplier/logo.png\">

<h4> <strong>".$values["Comp name"]."</strong></h4> 

<table width=\"778\" border=\"0\" cellspacing=\"10\" cellpadding=\"10\" style=\"border:1px dashed #DFF2F6;\"> 

  <tr> 
    <td width=81> 
  <tr> 
    <td valign=\"top\">PhotoCam: </td> 
    <td width=395 valign=\"top\"><img src=\"http://xxxxx/supplier/".$values["PhotoCam"]."\" width=\"180\" height=\"190\"><img src=\"http://xxxxx/supplier/".$values["Photo"]."\" width=\"180\" height=\"190\"></td> 
  </tr> 

  <tr> 
    <td valign=\"top\">Name:</td> 
    <td valign=\"top\">".$values["Person Name"]."</td> 
  </tr> 
  <tr> 
    <td valign=\"top\">Profession: </td> 
    <td valign=\"top\">".$values["Profession"]."</td> 
  </tr> 
  <tr> 
    <td valign=\"top\">Issuing Date: </td> 
    <td valign=\"top\">".$values["Issuing Date"]."</td> 
  </tr> 

  <tr> 
    <td valign=\"top\">ExpiryDate</td> 
    <td valign=\"top\">".$values["ExpDate"]."</td> 
  </tr> 
    <tr> 
    <td valign=\"top\">Attach</td> 
    <td valign=\"top\">".$values["Attach"]."</td> 
  </tr>
</table> 




<br></td> 
  </tr> 
</table> 
</body> 
</html> 
"; 




$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'htmlbody' => $msg, 'from'=>$from));// Note 'htmlbody' instead of 'html'!
if(!$ret["mailed"])
{echo $ret["message"];}



;


0 comments: