Author: channa
Date: Tue Jan 29 03:37:29 2008
New Revision: 13137
Log:
Added reply-to header for password reset mail and made 'check mail' message for
self registration more prominent.
Modified:
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/userprofile/ResetPasswordBean.java
trunk/mashup/java/modules/www/registration_result.jsp
Modified:
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/userprofile/ResetPasswordBean.java
==============================================================================
---
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/userprofile/ResetPasswordBean.java
(original)
+++
trunk/mashup/java/modules/core/src/org/wso2/mashup/webapp/userprofile/ResetPasswordBean.java
Tue Jan 29 03:37:29 2008
@@ -27,6 +27,7 @@
import org.wso2.usermanager.UserStoreReader;
import org.wso2.usermanager.verification.email.EmailVerifierConfig;
+import javax.mail.Address;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
@@ -172,9 +173,11 @@
Session session = Session.getDefaultInstance(props, null);
try {
- // Construct the message
+ // Construct the message and set the attributes.
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(fromAddress));
+ Address[] replyTo = {new InternetAddress(fromAddress)};
+ msg.setReplyTo(replyTo);
msg.setRecipient(Message.RecipientType.TO, new
InternetAddress(emailId));
msg.setSubject(subject);
msg.setText(message + newPassword);
Modified: trunk/mashup/java/modules/www/registration_result.jsp
==============================================================================
--- trunk/mashup/java/modules/www/registration_result.jsp (original)
+++ trunk/mashup/java/modules/www/registration_result.jsp Tue Jan 29
03:37:29 2008
@@ -56,8 +56,8 @@
<tr>
<td align="center" height="150">
<% if ("true".equals(success)) { %>
- <div ><img src="images/correct.gif"
align="absmiddle"> Self-registration successful.<br/><br/> Please check
the specified
- mail account and click on the link sent to verify your
registration.</div>
+ <div ><img src="images/correct.gif"
align="absmiddle"> Self-registration successful.<br/><br/>
+ <strong>Please check the mail account you specified
and click on the link sent to verify your registration.</strong></div>
<% } else { %>
<div class="login-error"><img src="images/error.gif"
align="absmiddle"> Self-registration failed. Please try again.</div>
<% } %>
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev