SpringBoot Lambok Gmail Account
Application runs in 8080 port and has two endpoint expose getHome(Get Method) and sendEmail(Post Method)
{
"to":[
"test1@gmail.com",
"test2@gmail.com"
],
"subject":"Testing",
"content":"I am Content"
}
True
@Value("#{${email.configuration}}") private Map<String, String> mapProperties;
email.configuration = {host: 'smtp.gmail.com', port: '587', authrname: 'true', starttls: 'true', username: '', password: ''}
https://www.google.com/settings/security/lesssecureapps ==> For less secure
learn.allowed.domains = ${domains} domains = gmail.com, yahoo.com, hotmail.com