Announcement Announcement Module
No announcement yet.
JavaMailSenderImp error: Relay access denied Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • JavaMailSenderImp error: Relay access denied

    I'm trying to configure a mail sender:
    <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    	<property name="host" value=""/>
    	<property name="username" value="bian0987"/>
    	<property name="password" value="password"/>
    	<property name="javaMailProperties">
    			<prop key="mail.smtp.auth">true</prop>
    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.

    But when I tried to use spring to send a email to external, I got 'Relay access denied' error, sending emails to other account works. So, what's wrong?

  • #2
    It would be useful to post the stacktrace. There are loads of previous posts both here and on the net in general about JavaMail, it would be worth having a search through them. Most problems are configuration related, this seems to be the case here.
    Last edited by karldmoore; Aug 27th, 2007, 03:49 PM.