bug 14465: throw exception when try to send email invitation while smtp session wasn't configured

status 14465: resolved fixed
This commit is contained in:
Alena Prokharchyk 2012-03-28 10:05:10 -07:00
parent 026641f48c
commit e4d16551fc
1 changed files with 2 additions and 0 deletions

View File

@ -1126,6 +1126,8 @@ public class ProjectManagerImpl implements ProjectManager, Manager{
smtpTrans.connect();
smtpTrans.sendMessage(msg, msg.getAllRecipients());
smtpTrans.close();
} else {
throw new CloudRuntimeException("Unable to send email invitation; smtp ses");
}
}
}