ユーザーにメールを送信するために使用postfix
していますが、問題は、スペースが見つかった場所で単語が壊れることです。これがスクリーンショットです:
postfix-send-email
<?php
$subject = "Status Of mail";
$message = "Test Email using Postfix Apache2";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: 'The Travel Worthy' 'pathik@gmail.com"\r\n";
$send = mail('test@yahoo.com', $subject, $message, $headers);
if($send)
{
return 1;
}
else
{
return 0;
}
?>