malformed email subject header when subject > 75 chars using codeigniter email lib

前端 未结 2 986
野的像风
野的像风 2021-01-19 15:43

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.

2条回答
  •  不要未来只要你来
    2021-01-19 16:43

    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"; 
    

提交回复
热议问题