コードはgmail、yahooの検索で機能していますが、企業IDの場合、実際のメッセージではなくHTMLタグが表示されています..以下のようなもの
Content-type: text/xhtml; charset=iso-8859-1
From: info@test.net
X-Mailer: php
Message-Id: <20130424005039.50FF769A98@test.=myweb.org>
Date: Wed, 24 Apr 2013 05:50:39 -0500 (CDT)
- コードがクライアント pc でコミットされている場合、企業 ID 以外を使用すると、コードは正常に機能しますが、企業 ID のみの問題です。
- 他のホスティング (php) から企業 ID にメールを送信すると、html が正常に表示されます。私は今何をすべきかわかりません。
php.net コードからのスニペット。
$to .= 'mytomailid@mail.com';
// subject
$subject = 'Birthday Reminders for August';
// message
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";
?>