I need some feedback from you.
I want to send out emails without authentication from a trusted host.
In this case I'm using Spring Integration, but this doesn't matter.
<si-mail:outbound-channel-adapter channel="outboundMail" host="smtp.host.com" java-mail-properties="javaMailProperties"/>
Underlining is the JavaMailSenderImpl with the following code
I see that my mail property is used to create the session, nevertheless I got an exception
transport = getTransport(getSession());
transport.connect(getHost(), getPort(), getUsername(), getPassword());
Is it right, that JavaMailSenderImpl requires authentication (username and password), so that setting mail.smtp.auth to false has no effect?
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
The JavaDoc of setUsername and setPassword suggest s.th. different.
Can somebody turn on the light for me?
Thanks a lot, Leif