Obfuscated Email Subject Issue - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Obfuscated Email Subject Issue (/showthread.php?tid=30246) |
Obfuscated Email Subject Issue - El Forum - 05-07-2010 [eluser]whobutsb[/eluser] Same thing in my Gmail. I setup a config file in my config directory called email.php, is that the correct way to name a config file? Here is the config I have in that: Code: $config['useragent'] = 'NHC SurveyForce'; Obfuscated Email Subject Issue - El Forum - 05-07-2010 [eluser]WanWizard[/eluser] Don't see anything wrong with that. What happens if you do a $this->email->print_debugger() directly after a $this->email->send()? And a var_dump($this->email->_header_str)? Obfuscated Email Subject Issue - El Forum - 05-07-2010 [eluser]whobutsb[/eluser] For the print_debugger the subject line is still coming across screwed up. Would it be terrible if I commented out the $subject = $this->_prep_q_encoding($subject); line the CI email library? Obfuscated Email Subject Issue - El Forum - 05-07-2010 [eluser]WanWizard[/eluser] If that's the case then it looks like your "\r\n" isn't used as newline. Try Code: $this-email->newline = "\r\n"; You could comment it out, it's not a problem as long as your subjects are ASCII characters only. I would advise you to find the problem, instead of working around it (and possibly introduce other issues). Obfuscated Email Subject Issue - El Forum - 05-07-2010 [eluser]whobutsb[/eluser] No go on just using the $this->email->newline = "\r\n"; Hmm I will keep working on it. Thank you for your help! If anyone else has any ideas, I'd love to hear them! Obfuscated Email Subject Issue - El Forum - 08-07-2011 [eluser]Unknown[/eluser] I have the same problem when the subject length is longer than 75 characters. If the subject is longer than 75, the Email Class function _prep_q_encoding add an newline in the subject and then the problem appear. Obfuscated Email Subject Issue - El Forum - 08-13-2011 [eluser]kijla[/eluser] [quote author="Bluecandy" date="1312733065"]I have the same problem when the subject length is longer than 75 characters. If the subject is longer than 75, the Email Class function _prep_q_encoding add an newline in the subject and then the problem appear.[/quote] I had the same problem as you. I changed the value if $crlf from "\r\n" to "\n" in the Email.php file in core/libraries and it seems to be working well now Code: var $newline = "\r\n"; Obfuscated Email Subject Issue - El Forum - 08-13-2011 [eluser]nikes[/eluser] I see, but why would it start looking in different ways from if I just create it in directly? Is there any way for me to fix my error? Obfuscated Email Subject Issue - El Forum - 10-15-2012 [eluser]Narf[/eluser] How does it work with this one guys? https://gist.github.com/3891474 I've been trying to get some feedback on the patch linked here: https://github.com/EllisLab/CodeIgniter/issues/1409#issuecomment-9330713 ... but as you can see in there - no real-world testers, so I thought I should come here. Obfuscated Email Subject Issue - El Forum - 06-19-2013 [eluser]bclinton[/eluser] The patched Email.php file worked for me |