小编Ant*_*ony的帖子

PHP发送纯文本邮件并强制固定宽度字符集

我想强制读者的电子邮件客户端显示我生成的带有固定宽度字符集的纯文本电子邮件.Thunderbird使用固定宽度的字符集显示电子邮件.但是,Gmail和Outlook(可能还有更多客户端)没有.

这是我的邮件服务器的配置设置还是我做错的事情?任何帮助将不胜感激.

这些是我目前正在使用的标题:

    $header = "MIME-Version: 1.0\r\n"; 
    $header .= "Content-type: text/plain; charset=ISO-8859-1; format=flowed\r\n"; 
    $header .= "Content-Transfer-Encoding: 7bit\r\n"; 
    $header .= "X-Mailer: PHP" . phpversion() ."\r\n"; 
    $header .= "From: ihateoutlook@email.com\r\n";
    $header .= "Reply-To: ihateoutlook@email.com\r\n";
Run Code Online (Sandbox Code Playgroud)

php email fixed character-encoding width

3
推荐指数
1
解决办法
3510
查看次数

标签 统计

character-encoding ×1

email ×1

fixed ×1

php ×1

width ×1