Forum Moderators: coopster
Is it possible to set an email as high priority in PHP's sendmail?
I would like this code below to be high priority in Outlook and Outlook express.
[php]
// send the email to ADMIN
$to ="emailaddresshere";
$subject = "subject goes here";
$from = "From: <emailaddresshere>";
$body = "Hello,\n\n";
mail($to, $subject, $body, $from);
[/php]
E.g.
// send the email to ADMIN
$to ="emailaddresshere";
$subject = "subject goes here";
$headers = "From: <emailaddresshere>\r\n" .
"X-Priority: 1\r\n" .
"Priority: Urgent\r\n" .
"Importance: high"; $body = "Hello,\n\n";
mail($to, $subject, $body, $headers);
HTH,
JP
Is there any difference between doing this headers like these 2 examples?
[php]
$headers="MIME-Version: 1.0\r\n";
$headers.="Content-type: text/html; charset=iso-8859-1\r\n";
[/php]
[php]
$headers = "MIME-Version: 1.0\r\n" .
"Content-type: text/html; charset=iso-8859-1\r\n" .
[/php]