New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email subject line starts with “?utf-8?Q?” #1409
Comments
@ciuser Which version of CI were you using? |
Version 2.1.0 |
I actually encountered this as well and I believe this happens on Windows servers only. I was also able to resolve the issue using the thread posted by the OP. @narfbg Any suggestions as to whether or not the code should be modified and committed into core? |
Windows? |
I had it set in the email config but didn't help. $config['crlf'] = "\r\n"; |
A quote from RFC 2047, on the "Q" encoding:
I guess Outlook could complain about that. What does happen if you change this:
to this:
? |
#1709 could also fix this. |
@takyana You too, since you've submitted #1498. |
@narfbg Thank you for letting me know. array(1) { ["Subject"]=> string(134) "=?UTF-8?Q?=e3=81=93=e3=82=8c=e3=81=af=e6=97=a5=e6=9c=ac=e8=aa=9e=e3=81?= =?UTF-8?Q?=ae=e3=83=86=e3=82=b9=e3=83=88=e3=81=a7=e3=81=99?=" } Note that you have to change $_headers of CI_Email into public to use the same test code. |
OK, does this do it? https://gist.github.com/3870694 It be really helpful if you try commenting out appropriate sections and test each of the solutions ( Those are all features that are not turned on by default on PHP, so there's no guarantee that it would absolutely always be failproof, but I've tried to fallback to the next in line when needed and 99 out of 100 will have at least mbstring enabled. Each of them looks to be working fine on my end, but I'm only looking at what gets generated and can't do a real test. |
I tried each of 3 solutions by changing comment out and all seem to produce correct results.
But please note that I checked the generated headers, too. (Currently I cannot touch the application code, which really sent Email) |
Thanks @takyana, please let me know if you get the chance to test it for real. |
@evinw You can read the contribution guide here: http://codeigniter.com/news/contribution_guide |
Hi guys, Just tested this with 2.1.3 and still having the same problem: Subject: =?utf-8?Q?Test_Message?= From: Evin Weissenberg [mailto:notifications@github.com] Hey guys, I want to contribute to this excellent framework, let me know who is the On 10/12/12 10:49 AM, Andrey Andreev wrote:
Creative Problem Solving Electro Chemical Organism — Protected by PowerView Email Defense |
@ciuser The fix is applied on the develop branch here on GitHub, it hasn't been released officially yet. |
This code are working properly you need to change "system/libraries/Email.php" public function subject($subject) |
Also so you have to add in config variable when you load email library $config = array( Again I got this issue “?utf-8?Q?” in subject |
Was facing the same issue , the solution suggested here https://forum.codeigniter.com/archive/index.php?thread-54634.html solved the problem. |
Sending email using CI the subject line starts with “?utf-8?Q?”. The subject line is not over 75 characters
The following post suggestions don't solve the problem:
http://codeigniter.com/forums/viewthread/154493/
http://stackoverflow.com/questions/8350865/malformed-email-subject-header-when-subject-75-chars-using-codeigniter-email-l
I copied the email class into my application/libraries and then made the edits suggested here:
http://codeigniter.com/forums/viewthread/119946/
Works correctly now…
The text was updated successfully, but these errors were encountered: