Unable to send email via Java Mail in JCS-SX
Summary
Unable to send emails via JCS-SXContent
I followed all the instructions here:
And then deployed a webservice to test the Oracle Email Gateway service in my Java Code.
Here is my code :
public boolean sendEmail() {
Properties props = new Properties();
props.put("mail.smtp.auth", "true");
// Not sure if I need to use some more properties ?
Session session =
Session.getInstance(props, new javax.mail.Authenticator() {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("emailUser", "*****");
}
});
// Session session = Session.getInstance(props);
0