Eric Emminger wrote:

Sam

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?

Yes I did, thank you for the advice. It works now, I figured out that my Bcc field was null and that is why I got this Exception...
Then I only had some problems with the body of the mail that didn't appear at first try but after a look at the list I found the answer and use javamail 1.3 and activation 1.0.2


Thanks for the reply,

SaM




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]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to