主题>时发生格式不正确的电子邮件主题标题。 75个字符使用codeigniter电子邮件lib [英] malformed email subject header when subject > 75 chars using codeigniter email lib

查看:169
本文介绍了主题>时发生格式不正确的电子邮件主题标题。 75个字符使用codeigniter电子邮件lib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当主题超过75个字符时,我在MIME标题中收到一些错误。
当换行符在标题中编码时,会有一个额外的换行符无效。

I'm getting some garble in my MIME headers when the subject is over 75 chars. When the line break is encoded in the header there is an extra line break that is invalid.

某些电子邮件网关会使用 格式错误的MIME字段:?= =?utf-8?Q?SUBJECT?=错误。

Some email gateways are bouncing the email with a "Malformed MIME field: ?= =?utf-8?Q?SUBJECT?=" error.

有人有任何UTF-使用CodeIgniter发送电子邮件?

Does anyone have any experience with utf-8 problems sending emails with CodeIgniter?

-snip-
Return-Path: ***
Subject: =?utf-8?Q?SUBJECT_LINE    <--
?=                                 <-- Problem in Subject header
 =?utf-8?Q?SUBECT_LINE_2?=         <--
To: ***
Reply-To: ***
-snip-






更新:
这与gmail smtp无关。


Update: This has nothing to do with gmail smtp. I have rewritten the question in the hope that it will help someone out in the future.

推荐答案

显然这是一个已知的问题,由主题行> 75个字​​符引起。

Apparently this is a known issue, caused by Subject lines > 75 chars.

http: //codeigniter.com/forums/viewthread/154493/P15/#925385

修复方法是更改​​电子邮件配置,如下所示:

The fix was to change the email config like this:

$config['newline'] = "\r\n";
$config['crlf']    = "\n"; 

这篇关于主题&gt;时发生格式不正确的电子邮件主题标题。 75个字符使用codeigniter电子邮件lib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆