WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 21 months ago

#23365 closed enhancement (wontfix)

Add Option for user defined from_email

Reported by: stevish Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Mail Keywords:
Focuses: Cc:

Description

As is admitted in pluggable.php in the wp_mail function, the default from address is not ideal. If set to wordpress@domain(dot)com, some hosts block the E-mail because it doesn't exist. If set to admin_email, some hosts block it because it's from an unknown domain.

The most natural answer to me is to add an option for this in the admin interface. This way, people with an issue, or simply trying to appear more professional, are able to change this without a plugin or adding code to their theme. Even if the option is pretty buried, a simple help doc could point folks to the right spot.

For proof of need, check out all the threads under http://wordpress.org/search/wordpress%40?forums=1

Change History (5)

comment:1 @stevish2 years ago

Besides the host blocking E-mails, this is an issue because people have other reasons for wanting to customize this. Our particular reason is for users of our multisite installation to be able to reply to notification E-mails sent to them, and actually get help. Therefore, we have added a filter to change from_email to our help desk E-mail.

comment:2 @SergeyBiryukov2 years ago

Last edited 2 years ago by SergeyBiryukov (previous) (diff)

comment:3 @iandunn2 years ago

  • Cc ian_dunn@… added

Sergey, It sounds to me like Stevish is aware of the filters and plugins, but is arguing that this warrants an option in the admin UI because of the amount of people seeking a solution for it.

Stevish, WP typically follows the "Decisions, Not Options" philosophy, and likes to keep Core lean. Since there are already filters and plugins available, I don't think this has much chance of being accepted.

comment:4 @nacin2 years ago

The main issue with providing a UI option for this, is it requires configuration beyond the option. Something still needs to be done, outside of WordPress, in order to make it work. The user still needs to do some outside configuration they probably don't understand (see the next paragraph for a fairly onerous and confusing process some must go through). That's not very good when you offer an arbitrary input. If any email worked, we would have been using admin_email all this time.

I think something more effective would be to encourage hosts to set up a default email address of wordpress@… in their own systems whenever a user installs WordPress, to allow the local SMTP server to send it. Even if MX records to not go to the host, some hosts do whitelist outgoing mail based on their own systems.

comment:5 @SergeyBiryukov21 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.