This is the code I have:
private MailSender getMailSender() {
JavaMailSenderImpl sender = new JavaMailSenderImpl();
sender.setHost("mail");
Properties properties = new Properties();
properties.put("mail.smtp.auth", "false");
sender.setJavaMailProperties(properties);
return sender;
}
The host is ok. I still get the AuthenticationException. Any help is greatly appreciated !