Skip to Content
0
Oct 04, 2019 at 03:59 AM

Is it possible to send an email using Java and gmail smtp with config ("mail.smtp.auth"="false").

148 Views

Hi All,

I am trying to create a Java micro-service application to trigger an email using Gmail SMTP. I have checked the tutorial : https://help.sap.com/viewer/cca91383641e40ffbe03bdc78f00f681/Cloud/en-US/e70a574cbb57101494a781920e3c9d64.html

which shows the configuration but the example is with "mail.smtp.auth"="true".

Can we do the same with "mail.smtp.auth"="false" where I don't need to provide username and password.

I tried and end up with following response.

530-5.5.1 Authentication Required. Learn more at 530 5.5.1 https://support.google.com/mail/?p=WantAuthError l12sm3787274pgs.44 - gsmtp

Also is there any service offered by SAP cloud foundry to trigger an email?

Thank You

Amrit