Address and name used in notification messages

View: New views
10 Messages — Rating Filter:   Alert me  

Address and name used in notification messages

by Simon Blackbourn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

When you set up a new WordPress site, it asks you for an email address. This
then populates the 'admin_email' option, as well as the administrator's user
profile. But then this address doesn't seem to get used for notifications,
instead they come from "WordPress <wordpress@...>". This is a totally
made-up address that the blog owner has no control over as it doesn't appear
in any options anywhere.

Should a user reply to a notification email (which is certainly likely,
especially with non-teccie users) it won't go anywhere unless you've set up
an email address (or alias) of that name on your hosting.

Some email-sending functions are in pluggable.php so can be overridden to
use a different From name and address (e.g. wp_new_user_notification,
wp_notify_postauthor, wp_notify_moderator) but others are not (e.g.
retrieve_password).

It seems to me that:

1. The From name should be the 'blogname' option, rather than "WordPress".

2. The From address should be the admin_email option, rather than
wordpress@....

3. The option name 'admin_email' is confusing, because it's actually the
blog email address, not the admnistrator's (the administrator's email
address is in their user profile). It would make more sense to have the
option name called 'blog_email', then on the general options screen you'd
have 'Blog title', 'Blog address' and 'Blog email'.

4. If some email-sending functions are currently in pluggable.php, then all
of them should be there for consistency.

There may be good arguments against some of these that I haven't thought of,
I'm sure you'll let me know if there are!

Cheers
Simon
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Address and name used in notification messages

by Austin Matzko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jun 25, 2009 at 9:41 AM, Simon Blackbourn <piemanek@...> wrote:

> It seems to me that:
>
> 1. The From name should be the 'blogname' option, rather than "WordPress".
>
> 2. The From address should be the admin_email option, rather than
> wordpress@....
>
> 3. The option name 'admin_email' is confusing, because it's actually the
> blog email address, not the admnistrator's (the administrator's email
> address is in their user profile). It would make more sense to have the
> option name called 'blog_email', then on the general options screen you'd
> have 'Blog title', 'Blog address' and 'Blog email'.
>
> 4. If some email-sending functions are currently in pluggable.php, then all
> of them should be there for consistency.
>
> There may be good arguments against some of these that I haven't thought of,
> I'm sure you'll let me know if there are!

There are a number of Trac tickets that have discussed this issue.
For example, see http://core.trac.wordpress.org/ticket/5007

Basically the problem is a catch-22: if you use admin_email, some
hosts will refuse to send the mail because the origin domain differs
from the sending domain.

And (apparently a much smaller number of) other hosts block
wordpress@* outgoing mail when that account doesn't exist.

There's no single answer that works for everyone.
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Address and name used in notification messages

by Jeremy Clarke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jun 25, 2009 at 4:41 PM, Simon Blackbourn<piemanek@...> wrote:
> 1. The From name should be the 'blogname' option, rather than "WordPress".

Definitely, this is a no-brainer, I've always hated this.

> 2. The From address should be the admin_email option, rather than
> wordpress@....

+1, I don't see any reason not to do this. Security of the admin email
or something? Seems like its up to people to make the admin_email
general if they want that, most won't care and would get more benefit
from it being a real address in case of replies.

> 3. The option name 'admin_email' is confusing, because it's actually the
> blog email address, not the admnistrator's (the administrator's email
> address is in their user profile). It would make more sense to have the
> option name called 'blog_email', then on the general options screen you'd
> have 'Blog title', 'Blog address' and 'Blog email'.

+1, it just makes SO much more sense to do it this way. Also worth
noting is that there can be multiple administrators in WP, preferably
with usernames other than 'admin', rendering the situation even more
confusing. It *is* the blog_email and not the admin_email. If anything
it *might* be a good idea to also have a pulldown menu of users so
that you could choose a user rather than a specific address, and the
system could just use whatever email that user has set in case they
change it. IMHO not really worth it to go that far, but I think it
would be the logical way of handing it if you think it should be tied
to a user rather than the 'blog_url' (Note: I think it should
definitely be possible to set it to a non-user email even if you can
use a user, as there are really elegant choices that aren't linked to
any user, like setting up site@... and having it send from
that).

--
Jeremy Clarke | http://jeremyclarke.org
Code and Design | http://globalvoicesonline.org
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Address and name used in notification messages

by Jennifer Hodgdon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Austin Matzko wrote:
> Basically the problem is a catch-22: if you use admin_email, some
> hosts will refuse to send the mail because the origin domain differs
> from the sending domain.
>
> And (apparently a much smaller number of) other hosts block
> wordpress@* outgoing mail when that account doesn't exist.
>
> There's no single answer that works for everyone.

All the more reason to have it be a configurable option, separate from
the "admin" user's email address. There could be some helpful text
explaining these two issues, and a button that lets you send a test
email message to see what works for you.

    --Jennifer

--
Jennifer Hodgdon * Poplar ProductivityWare
www.poplarware.com
Drupal, WordPress, and custom Web programming

_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Address and name used in notification messages

by Mike Schinkel-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Jun 25, 2009, at 11:11 AM, Austin Matzko wrote:

> On Thu, Jun 25, 2009 at 9:41 AM, Simon Blackbourn  
> <piemanek@...> wrote:
>> It seems to me that:
>>
>> 1. The From name should be the 'blogname' option, rather than  
>> "WordPress".
>>
>> 2. The From address should be the admin_email option, rather than
>> wordpress@....
>>
>> 3. The option name 'admin_email' is confusing, because it's  
>> actually the
>> blog email address, not the admnistrator's (the administrator's email
>> address is in their user profile). It would make more sense to have  
>> the
>> option name called 'blog_email', then on the general options screen  
>> you'd
>> have 'Blog title', 'Blog address' and 'Blog email'.
>>
>> 4. If some email-sending functions are currently in pluggable.php,  
>> then all
>> of them should be there for consistency.
>>
>> There may be good arguments against some of these that I haven't  
>> thought of,
>> I'm sure you'll let me know if there are!
>
> There are a number of Trac tickets that have discussed this issue.
> For example, see http://core.trac.wordpress.org/ticket/5007

+1 on Simon's entire list save addressing the issues covered in #5007.

> Basically the problem is a catch-22: if you use admin_email, some
> hosts will refuse to send the mail because the origin domain differs
> from the sending domain.
>
> And (apparently a much smaller number of) other hosts block
> wordpress@* outgoing mail when that account doesn't exist.
>
> There's no single answer that works for everyone

There could be a 3rd answer....

On Jun 25, 2009, at 11:55 AM, Jennifer Hodgdon wrote:
> All the more reason to have it be a configurable option, separate  
> from the "admin" user's email address. There could be some helpful  
> text explaining these two issues, and a button that lets you send a  
> test email message to see what works for you.

+1, this is the 3rd answer.

That said, see my next email with the subject "Workflow in WordPress."

-Mike Schinkel
WordPress Custom Plugins
http://mikeschinkel.com/custom-wordpress-plugins/

_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Parent Message unknown Re: Address and name used in notification messages

by Simon Blackbourn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>
> There are a number of Trac tickets that have discussed this issue.
>> For example, see http://core.trac.wordpress.org/ticket/5007
>>
>
> +1 on Simon's entire list save addressing the issues covered in #5007.


that ticket's confused the hell out of me, i can't figure out what's been
decided with it!
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Address and name used in notification messages

by Mike Schinkel-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Jun 25, 2009, at 2:23 PM, Simon Blackbourn wrote:
> that ticket's confused the hell out of me, i can't figure out what's  
> been
> decided with it!

Welcome to the world of WordPress Trac.

-Mike Schinkel
WordPress Custom Plugins
http://mikeschinkel.com/custom-wordpress-plugins/


_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Parent Message unknown Re: Address and name used in notification messages

by Simon Blackbourn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So following on from Jennifer's reply, it seems that the install screen
could have three inputs instead of the current two, with short helper text
after each:

 - Blog Title (the name of your blog)
 - Blog Email (the email address that will be used for sending notification
messages, password reminders, etc)
 - Administrator Email (the email address assigned to your administrator
user account)

Then somewhere in the Codex documentation something like: "Please ensure
that Blog Email addresses are valid. If notification messages don't get
delivered, please contact your hosting company for advice."

That way WordPress is clearly putting the onus on the hosting company for
email delivery, which is as I believe it should be, because as far as I can
tell there is in fact no 'bug' in WordPress (as is mentioned in trac ticket
5007).




2009/6/25 Mike Schinkel <mikeschinkel@...>

> On Jun 25, 2009, at 2:23 PM, Simon Blackbourn wrote:
>
>> that ticket's confused the hell out of me, i can't figure out what's been
>> decided with it!
>>
>
> Welcome to the world of WordPress Trac.
>
>
> -Mike Schinkel
> WordPress Custom Plugins
> http://mikeschinkel.com/custom-wordpress-plugins/
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers@...
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Address and name used in notification messages

by Lynne Pope :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/6/27 Simon Blackbourn <piemanek@...>

> So following on from Jennifer's reply, it seems that the install screen
> could have three inputs instead of the current two, with short helper text
> after each:
>
>  - Blog Title (the name of your blog)
>  - Blog Email (the email address that will be used for sending notification
> messages, password reminders, etc)
>  - Administrator Email (the email address assigned to your administrator
> user account)
>
> Then somewhere in the Codex documentation something like: "Please ensure
> that Blog Email addresses are valid. If notification messages don't get
> delivered, please contact your hosting company for advice."
>
> That way WordPress is clearly putting the onus on the hosting company for
> email delivery, which is as I believe it should be, because as far as I can
> tell there is in fact no 'bug' in WordPress (as is mentioned in trac ticket
> 5007).


Seems reasonable but one tip that should be in the admin screen itself is
that many hosts don't allow phpmailer at all and require SMTP.  This is
increasingly common and confuses the heck out of users when they can't
figure out why mail just doesn't work.  This isn't really a hosting company
issue either since phpmailer is notoriously insecure.
(Luckily there is a plugin for using SMTP mail transport ;) )

Lynne
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: Address and name used in notification messages

by Daniel Cameron-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Regardless of any decision or indecision to add this functionality to  
core here is a plugin that will get you by ( if you haven't noticed it  
already ) :

http://wordpress.org/extend/plugins/mail-from/

_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers