Skip to content

Instantly share code, notes, and snippets.

@Tolmark12
Created June 11, 2009 15:49
Show Gist options
  • Save Tolmark12/128001 to your computer and use it in GitHub Desktop.
Save Tolmark12/128001 to your computer and use it in GitHub Desktop.
public function sendTimeOutEmail ( ):void
{
var myMailer:SMTPMailer = new SMTPMailer ("s20744.gridserver.com", 25);
myMailer.addEventListener(SMTPEvent.AUTHENTICATED, _onAuthSuccess);
myMailer.addEventListener(SMTPEvent.BAD_SEQUENCE, _onAuthFailed);
myMailer.addEventListener(SMTPEvent.MAIL_SENT, _onMailSent);
myMailer.addEventListener(SMTPEvent.MAIL_ERROR, _onMailError);
myMailer.addEventListener(SMTPEvent.CONNECTED, _onConnected);
myMailer.addEventListener(SMTPEvent.DISCONNECTED, _onDisconnected);
myMailer.authenticate ("mark@delorum.com", "password");
myMailer.sendHTMLMail ( "mark@delorum.com", "mark@delorum.com", "Error report", "This is some meassage dude</b>");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment