[wp-trac] [WordPress Trac] #29069: Propasal: wp-pluggable.php patch to send email through SMTP, not mail()

WordPress Trac noreply at wordpress.org
Wed Jul 30 10:21:01 UTC 2014


#29069: Propasal: wp-pluggable.php patch to send email through SMTP, not mail()
-------------------------+-----------------------------
 Reporter:  JanR         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Mail         |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Hereby I provide you with a patch to WordPress 3.9.1's wp-
 includes/pluggable.php file, to enable the use of SMTP as email option.
 This patch provides several advantages:

 * it allows website owners to send email thought their ISP's SMTP server,
 instead of using the mail() function and localhost.
 * TLS and SSL encrypted connections are supported, as are alternative SMTP
 ports

 And all this makes it even possible to mail though Gmail's SMTP server.

 I dediced to put the email configuration in wp-config.php, so there is a
 patch for that file too.

 The story beind the patches is: I found it kinda strange the WordPress
 core lacks this functionality out-of-the-box, now more and more hosting
 providers require to use SMTP and TLS for sending mail from websites. Not
 to mention beter privacy protection due to the SMTP pipe being encrypted.
 The in WordPress included PHPMailer version supports these options by
 default.

 The patches are open for improvement.

 Regards,

 Jan,

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29069>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list