Hi there,
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.Code:<si-mail:outbound-channel-adapter channel="outboundMail" host="smtp.host.com" java-mail-properties="javaMailProperties"/> <util:properties id="javaMailProperties"> <prop key="mail.smtp.auth">false</prop> </util:properties>
Underlining is the JavaMailSenderImpl with the following code
I see that my mail property is used to create the session, nevertheless I got an exceptionCode:// JavaMailSenderImpl.doSend 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?Code: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


Reply With Quote
