You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Dan Harth <da...@yahoo.com> on 2007/05/02 00:11:50 UTC
Forgot Password Portlet SMTPSendFailedException: not have
permission to Send As this sender
I received the following message when attempting to use the Forgot Password
Portlet for Jetspeed 2.0 release
Failed to send forgotten password email to user with email address because
Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 454 5.7.3 Client
does not have permission to Send As this sender.
I tried the addition prop Key "mail.smtp.from" to no avail. It seems as if
the smtp server requires
a email.setFrom() in the message? I was wondering where does Jetspeed
obtain the email.setFrom() from? Or maybe this error is generated because
of something else?
If it uses jetspeed.properties file values:
email.admin = ******@*****.com
email.manager = ******@*****.com
email.userinfo.attribute = user.email
then theses are set accordingly to a valid from sender?
Contents of the spring bean in administration.xml are as follows, masking
out credentials and smtp server.
<beans>
<bean id="mailSender"
class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host"><value>smtp-out.******</value></property>
<property name="username"><value>******@****.com</value></property>
<property name="password"><value>**********</value></property>
<property name="javaMailProperties">
<props>
<prop key="mail.smtp.auth">true</prop>
<prop key="mail.smtp.from">******@*****.com</prop>
</props>
</property>
</bean>
Yet I am able to send mail using a simple commons email program as follows:
SimpleEmail email = new SimpleEmail();
try {
email.setHostName("smtp-out**********");
email.setAuthentication("******@*****.com", "********");
email.addTo("*******@*******", "ToUser");
email.setFrom("*******@*****.com", "FromUser");
email.setSubject("Test");
email.setMsg("This is a simple test of commons-email");
email.send();
} catch(Exception e) {
System.out.println("email-commons ERROR="+e);
}
Your assistance is greatly appreciated. I could not find a similiar
situation searching the forum or the internet?
--
View this message in context: http://www.nabble.com/Forgot-Password-Portlet-SMTPSendFailedException%3A-not-have-permission-to-Send-As-this-sender-tf3677553.html#a10276916
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org