I configured my smtp server in the TurbineRessources.properties file, and I use this code to make the email:
Did you restart container/application after changing TurbineRessources.properties?
HtmlEmail email = new HtmlEmail(); email.addTo(getMessage().getTo(), ""); email.addCc(getMessage().getCc(), ""); email.addBcc(getMessage().getBcc(), ""); email.addReplyTo(getMessage().getFrom(), ""); email.setFrom(getMessage().getFrom(), ""); email.setSubject(getMessage().getSubject()); email.setHtmlMsg(getMessage().getBody()); email.setSentDate(new Date(System.currentTimeMillis()); email.send();
Try sending a plain text email - VelocityEmail.
Eric
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
