Fixing the "From" address on all emails.
|Reported by:||Bernard_J_L||Owned by:||markjaquith|
|Component:||Administration||Keywords:||email address from blocked bg|has-patch bg|commit bg|squashed|
We keep having this small issue come up and manually fixing it. It might be others may have or soon might have a similar problem.
The core issue is some ISP's block generated mail messages if the "From" address is not within their domain. I suppose we can thank spammers for this.
Generally mail leaving Word Press very nicely uses the administrator email adddress as the "From" address and everything works as expected.
However, there is at least one place when someone makes a comment on an item, after it gets approved, Word Press sends a message to the originator of the item showing it coming from the creator of the comment.
Of couse the creator of the comment is generally the email address of the person who made the comment and is going to be off in some other domain which immediately gets blocked.
So we locate these and manually re-code to make the "From" address be the admin login and add a "Reply-to:" in the header to allow an easy reply to the creator of the comment.
To make it easy....could you please fix this in some future release to spare us this pain (finding the location in the code takes some time and I am not sure this is the only case this event occurs.).
Our suggestion would be ...
1) Use the RFC822 field "Sender" to always to be the Administrator email address as configured. (Currently Word Press does not set this field in any email headers.)
2) Set the RFC822 field "Reply-to" to what is the "from" field
3) Set the RFC822 field "From" the way you do right now.
I suppose if you want to do just the minimum you could add the "Sender" field with the administrator email to all messages and call it a day.
This would greatly easy our workload when we configure Word Press.
It would also perhaps be more elegant addressing since the "administrator" on the server is really the one generating the message even though you might be doing it on "behalf" of the person creating the item. (Check the example in RFC822 for a example of this usage)
Let us know what you think.
Thanks for the consideration.
Change History (14)
comment:2 markjaquith — 8 years ago
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
comment:3 markjaquith — 8 years ago
- Milestone set to 1.6
- Resolution set to fixed
- Status changed from assigned to closed
comment:10 markjaquith — 8 years ago
- Resolution fixed deleted
- Status changed from closed to reopened