06-08-2011 03:31 AM
mail.host=smtp.1und1.de
mail.port=25
mail.username=username
mail.password=pass
mail.encoding=UTF-8
mail.from.default=fromadress
mail.smtp.auth=true
the emailadress exists on our webserver.
Caused by: org.springframework.mail.MailSendException; nested exceptions (1) are:
Failed message 1: javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 550 must be authenticated
06-08-2011 11:22 AM
<prop key="mail.smtps.auth">${mail.smtps.auth}</prop>
<prop key="mail.smtps.starttls.enable">${mail.smtps.starttls.enable}</prop>
mail.host=auth.smtp.1and1.co.uk
mail.port=25
mail.username=********
mail.password=*******
mail.encoding=UTF-8
mail.from.default=*******
mail.smtp.auth=true
mail.protocol=smtp
mail.testmessage.send=true
mail.testmessage.to=david.coales@accipia.com
mail.testmessage.subject=Outbound SMTP test
mail.testmessage.text=Outbound SMTP is working
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– –>
<!– MAIL SERVICE –>
<!– –>
<bean id="mailService" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host">
<value>${mail.host}</value>
</property>
<property name="port">
<value>${mail.port}</value>
</property>
<property name="protocol">
<value>${mail.protocol}</value>
</property>
<property name="username">
<value>${mail.username}</value>
</property>
<property name="password">
<value>${mail.password}</value>
</property>
<property name="defaultEncoding">
<value>${mail.encoding}</value>
</property>
<property name="javaMailProperties">
<props>
<prop key="mail.smtp.auth">${mail.smtp.auth}</prop>
</props>
</property>
</bean>
</beans>
06-09-2011 07:15 AM
<prop key="mail.smtps.auth">${mail.smtps.auth}</prop>
<prop key="mail.smtps.starttls.enable">${mail.smtps.starttls.enable}</prop>
<prop key="mail.smtp.auth">${mail.smtp.auth}</prop>
<prop key="mail.smtp.starttls.enable">${mail.smtp.starttls.enable}</prop>
Actually I'm not even sure if the second property is required but I changed it anyway. You could try dropping it.mail.smtp.auth=true
mail.protocol=smtp
mail.smtp.starttls.enable=true
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.