hi,
I get the following exception
although I have the property "mail.system.mail.smtp.from" set in server.properties.
server.properties:
Code:
i used: SNAPSHOT_v9.0d_2013-05-16/PowerEdition Deployment 2013-05-16
best regards,
mirko
I get the following exception
Code:
com.isomorphic.mail.SenderNotSetException: Must specify the sender at com.isomorphic.mail.MailMessage.buildMessage(MailMessage.java:364) at com.isomorphic.mail.MailMessage.send(MailMessage.java:521)
server.properties:
Code:
mail.system.mail.smtp.host: xxxx mail.system.mail.smtp.port: 25 mail.system.mail.smtp.auth: true mail.system.mail.smtp.user: xxx@xyz.com mail.system.mail.smtp.password: xxxxx mail.system.mail.debug: true mail.system.mail.smtp.from: xxx@xyz.com
Code:
MailMessage message = new MailMessage(); message.addRecipients("test@xyz.com"); message.setSubject("Greetings"); message.setBody("Hello everyone!"); try { message.send(); } catch (Exception e) { e.printStackTrace(); }
best regards,
mirko
Comment