Skip to content

SwiftMailer Transport for sending mail via Newsman secure http API

License

Notifications You must be signed in to change notification settings

Newsman/NewsmanApiSwiftMailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

NewsmanApiSwiftMailer

This is the fastest way to send mails via Newsman secure http API by just chaning the SwiftMailer Transport.

require_once("lib/swift_required.php");

$transport = Swift_Transport_NewsmanApiTransport::newInstance("ACCOUNT_ID", "API_KEY");
$swift = Swift_Mailer::newInstance($transport);

All emails are se via a JSON POST request sent to: message.send_raw API method.

Tested on PHP 5.X with latest SwiftMailer from branch 5.x. You need to have the curl extension installed. All http requests are made with curl.

About

SwiftMailer Transport for sending mail via Newsman secure http API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages