Markavian

Untitled

Feb 12th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try {
  2.         mtwin.mail.Smtp.send(smtpHost, from, to, mail.get(), port, username, password);
  3. }
  4. catch (e:Exception) {
  5.         switch(e) {
  6.                 case ConnectionError(host, port): throw "Could  not send mail, error connecting to: ("  + smtpHost + ")";
  7.                 default: throw e;
  8.         }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment