Mail notification issues

0 views
Skip to first unread message

Shrek

unread,
Mar 2, 2007, 3:03:05 AM3/2/07
to webofweb
Hello,

I have managed to successfully set-up WoW on Linux.

Could anyone guide me to any documentation on how-to configure the
mail notification settings for WoW? I don't mind digging into the code
but need some initial direction.

Everything else seems to be working fine except the automatic mail
notification system for new user registrations, etc.

Also, is there any other way(apart from logging of spoofing) to know
the passwords of the new users created?
Looking for this as the mails sent to the new users are not going
through so if only I could send them the initial passwords in a custom
mail.

Thanks in advance for any help or assistance.

Compl Yue Still

unread,
Mar 2, 2007, 7:01:20 PM3/2/07
to webofweb
Hi,

WoW now just resolves the MX record for the target email domain, and
tries directly connect to the user's mail host to send the mail.
Sorry there is no extra options for now, about the mail notifications.

And WoW won't keep any password unless it's just generated and before
sent out, it'll discard the passwd as soon as the mail is sent.
So the only way to get a readable password is via /reset.jsp, where
supplied the account's email address, and got that via email.

However if this is not your desired behavior, may be the simplest way
for now is to log the password at /regemail.jsp

Map<String, char[]> passwords = new HashMap<String,
char[]>();
TheUser newUser = sApp.registerNewUser(email, cname,
loginid,
passwords);
request.setAttribute("user", newUser);
request.setAttribute("passwords", passwords);
ServletResponseInterceptor iResponse = new
ServletResponseInterceptor(
response);
request.getRequestDispatcher(
"/WEB-INF/templates/registration-info-
email.jsp").forward(
request, iResponse);

// ***
***************************************************************** ***
// *** log the password with the account here before destroyed ***
// ***
***************************************************************** ***
for (char[] password : passwords.values())
Arrays.fill(password, '\0');

boolean emailFailed = true;
try
{

sApp.mailSender.sendExpressMessage(request.getLocale(), email,
cname, "Registration Information At " +
siteName,
iResponse.getContent(),
iResponse.getContentType());
emailFailed = false;
}
catch (MessagingException e)
{
}
catch (NamingException e)
{
}

Similar sections will be found in /reset-password.jsp to track and log
reset passwords.

Good Luck,
Compl

Shrek

unread,
Mar 3, 2007, 1:01:57 PM3/3/07
to webofweb
Thanks for this clarification. May be I can work on this area once I
have all the existing features working correctly.

Cheers,
SB

Reply all
Reply to author
Forward
0 new messages