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
e1a3c3cbaa
commit
77a60597f2
|
|
@ -1103,6 +1103,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