Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

com.isomorphic.mail.SenderNotSetException: Must specify the sender

$
0
0
hi,

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)

although I have the property "mail.system.mail.smtp.from" set in server.properties.

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:
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();
}

i used: SNAPSHOT_v9.0d_2013-05-16/PowerEdition Deployment 2013-05-16

best regards,
mirko

Viewing all articles
Browse latest Browse all 4756

Trending Articles