Matteo Pelucco ha scritto:
The code is: ----------------------------------------------------------- try { String mailType = MailConstants.MAIL_TEMPLATE_TEXT;MgnlEmail email = MgnlMailFactory.getInstance().getEmailFromType(mailType);email.setBody(message, null); email.setToList(mgnlRecipientList); email.setFrom("[email protected]"); email.setSubject("Mirror Alert"); MgnlMailFactory.getInstance().getEmailHandler().prepareAndSendMail(email); } catch (Exception e) { log.error("Can not send email: " + e.getMessage() + ";"); System.out.println("*** STACKTRACE ***"); e.printStackTrace(); }
Just to add: on my developer machine (my laptop) no troubles at all.. it simply works.. No idea what to check on other machines.. Matteo ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
