The mailer function should add a space between site name and address in FROM
-
I just want to point out a small improvement that can be made in the code that emails the phpinfo:
On helper-functions.php line 73, the function assembles the “From” address of the email by using get_bloginfo(‘name’) followed by <no-reply@… >
There should be a space before <no-reply@….>, so the final From address should be
site_name <[email protected]>Without this space, the From address becomes
site_name<[email protected]>.What this does is that many mail servers will truncate the last character of the site name (because a space is expected there). So when the recipient receives the email, the From name will have the last character missing, ie MyBlog becomes Myblo. Confirmed this behavior on Gmail smtp at least.
Just a minor annoyance because I use this script to check phpinfo AND to test my mail server. Every time the mail came through the last character of the site name would be missing.
I added the space to the script manually and hopefully this can be fixed in a future update so I won’t have to modify it every time an update overwrites the script.
Thanks!
- The topic ‘The mailer function should add a space between site name and address in FROM’ is closed to new replies.