email class, quote not working in reply_to ? (CI 1.7.1) |
[eluser]hugle[/eluser]
Hello Everyone, I've been using email class several times, it was ok, but now I've met a problem I will describe: I want to use quotes (") in `reply_to` and `from`, but the quotes in `reply_to` get missed, simple example: Code: $this->email->to($address); and in message source I see: From: "UAB \"test\"" <[email protected]> Reply-To: "UAB " test "" <[email protected]> From: seems to be OKAY but Reply-To: is not ![]() I also tried: Code: $this->email->from('[email protected]', 'UAB "test"'); Can anyone help me to deal with that? ![]() thank you, everyone! Jaroslav
[eluser]hugle[/eluser]
Hello again, after some time I decided to dig the function to and function reply_to in the Email class. I have coppied the code from 'function to' Code: // prepare the display name so I made the extention for CI. Simply create a file called MY_Email.php in application/libraries the content of file would be: Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); That should fix your problem if you have one ![]() Good luck and thank you for CI!
[eluser]sophistry[/eluser]
this is a bug. you should post it in the bug tracker. the from() function and the reply_to() function both handle emails so they should be applying all the same transformations equally. a comprehensive solution wouldnot be the fix you suggested (copy/paste code sections) but a refactoring of the way the class handles email header fields. the Return-Path header is unworkable too, BTW. see this bug report about Return-Path. nice catch. |
Welcome Guest, Not a member yet? Register Sign In |