Php mail headers for Outlook - email arrives blank in Outlook, and great for gmail for yahoo

mail($to, $subject, $message, $headers);

heading $:

From: from-me@mymail123.com 
Reply-To: from-me@mymail123.com
Content-Type: text / html; charset = iso-8859-1
X-Mailer: PHP / 5.2.5
MIME-Version: 1.0

I built $headerwith this line, and I changed the order in every way, putting Mime at the beginning, at the end, moving and canceling the addition and removal of the X-mailer line. The results are the same. Gmail and yahoo are fine, and email is a blank insert if configured for Outlook 2003.

Any thoughts?

sdfor

+3
source share
3 answers

. phpMailer " ". .

. Outlook doctype HTML-. gmail . \

!

//:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head></head>
<body>
<h1>HTML EMAIL</h1>
</body>
</html>

//

$headers = "From: $from\n"
$headers .= "Reply-To: $replyto\n"
$header .= "Content-Type: text/html; charset=\"iso-8859-1\"\n";

//

mail($to, $subject, $message, $headers);
+5

phpmailer, sourceforge. . . .

+2

"From:...". . , .

0

Source: https://habr.com/ru/post/1715472/


All Articles