i am trying to send mail through java code.
getting this error
Mail Sending Failed in CASEID 00015063
with SUBJECT at
RESPONSE 3078CD0006626 - PROCESSED
REASON javax.mail.MessagingException: A1 BAD Invalid SASL argument. t21mb170186760ivm;
nested exception is:
com.sun.mail.iap.BadCommandException: A1 BAD Invalid SASL argument. t21mb170186760ivm
What I have tried:
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class","javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");