
Originally Posted by
vammpiro
I tried this way and I got an exception saying that this property does not exist. it seems that I need to set a property file, does sum1 know has an idea how I can do this?
If you looked at the java doc salp added the link to, that isn't a property.
Code:
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="myhost.com" />
<property name="username" value="myUsername" />
<property name="password" value="myPassword" />
<property name="javaMailProperties">
<props>
<prop key="mail.smtp.auth">true</prop>
</props>
</property>
</bean>