Hi All,
I have been trying to get PHP runner to send HTML emails with the content of a new record.
Simple text emails work fine but I cannot seem to get HTML messages to send correctly, the PHP runner generated code is below:
//** Send email with new data ****
$email="report@domain.com";
$from="myemail@domain.com";
$msg="Form data";
$subject="Enquiry - New record added";
foreach($values as $field=>$value)
{
if(!IsBinaryType(GetFieldType($field)))
$msg.= $field." : ".$value."\r\n";
}
$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));
if(!$ret["mailed"])
echo $ret["message"];
//** Redirect to another page ****
header("Location: Enquiry_list.php");
exit();
Has anyone managed to get HTML messages to send from Php runner created forms?.
Many thanks,
Brendan.