mirror of https://github.com/apache/cloudstack.git
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:
parent
026641f48c
commit
e4d16551fc
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue