Ao finalizar compra ocorre:
Pagamento efetuado com sucesso
nov 01, 2019 3:36:56 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet [dispatcher] threw exception
org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. v16sm4395084qth.51 - gsmtp
; message exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. v16sm4395084qth.51 - gsmtp
Minha configuração é:
mailSender.setHost("smtp.gmail.com");
        mailSender.setUsername("CCLOCAWEB.com.br");
        mailSender.setPassword("CCLOCAWEBSENHA");
        mailSender.setPort(587);
        Properties mailProperties = new Properties();
        mailProperties.put("mail.smtp.auth", true);
        mailProperties.put("mail.smpt.starttls.enable", true);Coloco meu e-mail corporativo e senha mas lança Exception e não recebo o e-mail
 
            