Fix service initialization and behaviour when authentication is required

This commit is contained in:
Andrea Bollini
2013-08-16 11:27:54 +02:00
committed by Mark H. Wood
parent f70c72893e
commit ca58b047e4

View File

@@ -103,7 +103,8 @@ public class EmailServiceImpl
}
else
{
session = Session.getInstance(null, this);
props.put("mail.smtp.auth", "true");
session = Session.getInstance(props, this);
}
// Set extra configuration properties