Skip to content

Commit e4d1655

Browse files
author
Alena Prokharchyk
committed
bug 14465: throw exception when try to send email invitation while smtp session wasn't configured
status 14465: resolved fixed
1 parent 026641f commit e4d1655

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎server/src/com/cloud/projects/ProjectManagerImpl.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,8 @@ public void sendInvite(String token, String email, long projectId) throws Messag
11261126
smtpTrans.connect();
11271127
smtpTrans.sendMessage(msg, msg.getAllRecipients());
11281128
smtpTrans.close();
1129+
} else {
1130+
throw new CloudRuntimeException("Unable to send email invitation; smtp ses");
11291131
}
11301132
}
11311133
}

0 commit comments

Comments
 (0)