Skip to Content
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").


Hi All,

I am trying to create a Java micro-service application to trigger an email using Gmail SMTP. I have checked the tutorial :

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 l12sm3787274pgs.44 - gsmtp

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

Thank You