mailengine does not throw exception
-----------------------------------
Key: APF-1147
URL:
http://issues.appfuse.org/browse/APF-1147 Project: AppFuse
Issue Type: Bug
Reporter: tibi
Assignee: Matt Raible
Attachments: patchMailEngineTryCatch.txt
two methods catch something they should trhow. this is the right code:
public void sendMessage(SimpleMailMessage msg, String templateName,
Map model) throws VelocityException{
String result =
VelocityEngineUtils.mergeTemplateIntoString(velocityEngine,
templateName, model);
msg.setText(result);
send(msg);
}
public void send(SimpleMailMessage msg) throws MailException {
mailSender.send(msg);
}
see patch
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.appfuse.org/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]