I'm trying to configure a mail sender:
I believe this is the typical configurations for JavaMailSenderImpl, and I can use the above username and password to check and receive emails from Outlook. This is not a SSL smtp, I use all default settings in outlook.Code:<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="host" value="smtp.usyd.edu.au"/> <property name="username" value="bian0987"/> <property name="password" value="password"/> <property name="javaMailProperties"> <props> <prop key="mail.smtp.auth">true</prop> </props> </property> </bean>
But when I tried to use spring to send a email to external, I got 'Relay access denied' error, sending emails to other @usyd.edu.au account works. So, what's wrong?


Reply With Quote