Welcome Guest, Not a member yet? Register   Sign In
CI_Email::from() ignores the display name in the email address
#3

(10-19-2017, 03:22 AM)InsiteFX Wrote: You should never edit a CodeIgniter system file!

If you need to make that change then extend the Email Class.

I have extended the class - it is called MY_Email.php and it is found in the application/libraries folder.

Please don't misunderstand me. The point of my post is that I feel that the email address parsing in the system class is incomplete as it only identifies the email address portion and ignores the display name. A better implementation would be to parse out both variables.

My version of the class also includes a number of other changes such as implementing a mail queue, improving the alt_message to better format the plain text version of an HTML message and hiding the User-Agent (as we have found a number of services which interrogate the X-Mailer as part of their spam scoring).
Reply


Messages In This Thread
RE: CI_Email::from() ignores the display name in the email address - by daveherman - 10-23-2017, 05:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB