普通网友 2012-04-16 15:21
浏览 76
已采纳

php:电子邮件失败(“错误的标题和邮件内容”)

i need to know why my email not sent in inbox and not able to attach file

here's my headers and message

Headers

MIME-Version: 1.0; 
Content-Type: multipart/mixed; boundary="PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS";Return-Path:mx@mozhl.com;
Organization: Shbkat.com;

 From: mx@shbkat.com; 
Bcc : samarlover.php@gmail.com 

Message


 --PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS 
 Content-Type:text/html;
 Content-Transfer-Encoding: 7bit 

 I Love Egypt

 --PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS 
 Content-Type: application/octet-stream; name="file.txt" ; 
 Content-Description: file.txt; 
 Content-Disposition: attachment;filename=file.txt; size=38; 
 Content-Transfer-Encoding: base64 

dGhpcyBpcyBhdHRhY2hlZCBmaWxlIGluIG1haWwgZnVuY3Rpb24=

What is the problem and how to fix it

  • 写回答

1条回答 默认 最新

  • duanqing3026 2012-04-16 15:33
    关注
    MIME-Version: 1.0; 
    
    Content-Type: multipart/mixed;boundary="PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS";
    
    Return-Path:mx@mozhl.com;
    
    Organization: Shbkat.com;
     
    From: mx@shbkat.com; 
    
    Bcc: samarlover.php@gmail.com 
    
    
    
     --PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS 
     
    Content-Type:text/html;
     
    Content-Transfer-Encoding: 7bit 
    
     I Love Egypt
    
     --PHP-mixed-MIME_BOUNDARY_MESSAGE_PARTS 
     
    Content-Type: application/octet-stream; name="file.txt"; 
     
    Content-Description: file.txt; 
     
    Content-Disposition: attachment;filename=file.txt; size=38; 
     
    Content-Transfer-Encoding: base64 
    
    dGhpcyBpcyBhdHRhY2hlZCBmaWxlIGluIG1haWwgZnVuY3Rpb24=
    

    展开全部

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部