smtpmailer 0.0.1

Haxe SMTP mailer with support for SSL & StartTLS

Released 2016-08-09.

To install, run:

haxelib install smtpmailer 0.0.1

See using Haxelib in Haxelib documentation for more information.

Maintainerbenmerckx
Websitehttps://github.com/benmerckx/smtpmailer
Current version0.0.1
StatisticsInstalled 93 times
LicenseMIT
Tags web

README.md

smtpmailer

Runs on sys targets and nodejs.

SSL/StartTls:

  • Supported on java/php/nodejs
  • Supported with -lib hxssl on neko/cpp
var mailer = new SmtpMailer({
	host: 'hostname',
	port: 587,
	auth: {
		username: 'user',
		password: 'pass'
	}
});
mailer.send({
	subject: 'Subject',
	from: 'mail@example.com',
	to: ['mail@example.com'],
	content: {
		text: 'hello',
		html: '<font color="red">hello</font>'
	},
	attachments: ['image.png']
}).handle(function(res) {
	switch res {
		case Success(_):
			trace('Email sent!');
		case Failure(e): {
			trace('Something went wrong: '+e);
		}
	}
});