2012-04-16 14 views
-3

を失敗した私は、ファイルPHPは:電子メール(「間違ったヘッダとメッセージ内容」)

を添付することはできません、私のメールが受信トレイに送信されていない理由を知っている必要がありますし、ここに私のヘッダーとメッセージが

ヘッダ

です
MIME-Version: 1.0; \r\nContent-Type: multipart/mixed; boundary="PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS";Return-Path:[email protected];\r\nOrganization: Shbkat.com;\r\n\r\n From: [email protected]; \r\nBcc : [email protected] \r\n 

メッセージ

\n --PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS \r\n Content-Type:text/html;\r\n Content-Transfer-Encoding: 7bit \n\n I Love Egypt\r\n\r\n --PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS \r\n Content-Type: application/octet-stream; name="file.txt" ; \r\n Content-Description: file.txt; \r\n Content-Disposition: attachment;filename=file.txt; size=38; \r\n Content-Transfer-Encoding: base64 \n\ndGhpcyBpcyBhdHRhY2hlZCBmaWxlIGluIG1haWwgZnVuY3Rpb24= 

は何が問題であると\ rを\ N '戻り-PATH`ヘッダ `の前に`行方不明それを

+1

を修正する方法を、あなたは '持っている\ rを\ nは\ rを\ N''前から: 'ヘッダーは' \ r \ n'でなければなりません。また、あなたのサーバが大規模なISPに適切なDNSレコードやIP用の非汎用ホスト名などのメールを送信するための要件を満たしていることを確認してください。 – drew010

答えて

0
MIME-Version: 1.0; \r\n 
Content-Type: multipart/mixed;boundary="PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS";\r\n 
Return-Path:[email protected];\r\n 
Organization: Shbkat.com;\r\n 
From: [email protected]; \r\n 
Bcc: [email protected] \r\n 

\n --PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS \r\n 
Content-Type:text/html;\r\n 
Content-Transfer-Encoding: 7bit \n\n I Love Egypt\r\n\r\n --PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS \r\n 
Content-Type: application/octet-stream; name="file.txt"; \r\n 
Content-Description: file.txt; \r\n 
Content-Disposition: attachment;filename=file.txt; size=38; \r\n 
Content-Transfer-Encoding: base64 \n\ndGhpcyBpcyBhdHRhY2hlZCBmaWxlIGluIG1haWwgZnVuY3Rpb24= 
関連する問題