WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3862 closed defect (bug) (fixed)

phpmailer

Reported by: ryan Owned by: ryan
Milestone: 2.2 Priority: normal
Severity: normal Version: 2.1.1
Component: Administration Keywords: mail smtp encoding wp_mail
Focuses: Cc:

Description

Integrate phpmailer to gain smarter header encoding and the option of SMTP. We could setup phpmailer to use php's mai() by default and add a hook that would allow plugins to configure phpmailer for SMTP.

phpmailer will hopefully fix encoding issues like #209.

Attachments (1)

phpmailer.diff (84.8 KB) - added by ryan 7 years ago.
class-phpmailer.php, class-smtp.php, new wp_mail()

Download all attachments as: .zip

Change History (8)

ryan7 years ago

class-phpmailer.php, class-smtp.php, new wp_mail()

comment:1 yskin7 years ago

Looks nice. Good news to me. Many people, include me, can't use PHP's mail() function on their virtual hosts.

I remember that PHPMailer doesn't support SSL connection so it can't connect Google SMTP server.

comment:2 rob1n7 years ago

Patch looks good, +1 from me for including phpmailer. That way we don't have to deal with all that mail stuff in the core.

comment:3 rob1n7 years ago

  • Cc rob1n added

comment:4 ryan7 years ago

I found this thread on adding SSL support.

http://drupal.org/node/39138

comment:5 ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4946]) Trying out phpmailer for wp_mail(). fixes #3862

comment:6 robertaccettura7 years ago

Should note that phpMailer doesn't seem to handle 8bit emails with utf-8 encoded subjects very well. They seem to get truncated.

comment:7 ryan7 years ago

I've been looking over swiftmailer, but it is has dozens of files versus phpmailer's one file. If anyone wants to experiment with plugging swiftmailer into wp_mail(), let us know how it goes.

http://swiftmailer.org/

Use their php4 package rather than the php5 one.

Note: See TracTickets for help on using tickets.