Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- mtwin.mail.Smtp.send(smtpHost, from, to, mail.get(), port, username, password);
- }
- catch (e:Exception) {
- switch(e) {
- case ConnectionError(host, port): throw "Could not send mail, error connecting to: (" + smtpHost + ")";
- default: throw e;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment