WordPress.org

Plugin Directory

Swift Mailer

The Swift Mailer library and nothing more. Created for developers.

Upload and activate. You can then use the Swift Mailer library within your code - swift_required.php is automatically included.

Sample connect and send code (full documentation available at: http://swiftmailer.org/docs/sending.html )

// Create the Transport
$transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25)
  ->setUsername('your username')
  ->setPassword('your password')
  ;

// Create the Mailer using your created Transport
$mailer = Swift_Mailer::newInstance($transport);

// Create a message
$message = Swift_Message::newInstance('Wonderful Subject')
  ->setFrom(array('john@doe.com' => 'John Doe'))
  ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
  ->setBody('Here is the message itself')
  ;

// Send the message
$result = $mailer->send($message);

Requires: 3.0 or higher
Compatible up to: 4.1.3
Last Updated: 2015-3-29
Active Installs: 1,000+

Ratings

4.5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,1,1
100,1,1
100,1,1
100,1,1
0,1,0 100,1,1
100,1,1
100,1,1
100,1,1