note4

Wednesday, November 21, 2018

8:04 PM
PHPRUNNER MAIL SAMPLE HTML


//**********  Send email with new data  

$email="mail@sample.com";// your email, please change
$msg="";
$subject="From Online Request";
$msg.="<html> 
<head> 
<title>T-Code Request</title> 
</head> 
<body> 
<img src=\"http://localhost/tcode/logo.png\">



<h4><a href=http://samplelocalhost/tcode/request_view.php?editid1=".$values["id"].">".$values["Status"]."</a></h4>



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



  <tr> 
    <td width=94 valign=\"top\">EmpRequest:</td> 
    <td width=309 valign=\"top\">".$values["EmpReq"]."</td> 
  </tr> 

  <tr> 
    <td valign=\"top\">DatRequest: </td> 
    <td valign=\"top\">".$values["DateReq"]."</td> 
  <tr> 
    <td valign=\"top\">Status: </td> 
    <td valign=\"top\">".$values["Status"]."</td> 
  </tr>
  </tr>
</table> 

<h4>T-Code Request</h4>

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

  <tr> 
    <td width=94 valign=\"top\">No:</td> 
    <td width=309 valign=\"top\">".$values["SrNo"]."</td> 
  </tr> 

  <tr> 
    <td width=94 valign=\"top\">T-Code:</td> 
    <td width=309 valign=\"top\">".$values["T-Code"]."</td> 
  </tr> 

  <tr> 
    <td valign=\"top\">Desciption: </td> 
    <td valign=\"top\">".$values["Description"]."</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: