on 10-15-2007 1:26 PM
Hi ,
In my application ,the user creation is handled by custom Admin module which uses the UME APIs. Upon creating the user, we need to send a notification mail to the user's email id which he provided in the Add new user form.
<b>Is there any direct APIs available to notify the user via email. I hope the Standard user creatin module in User Administration also uses the same UME APIs.</b>
Please let me know the possibilities.
Appreciate your help.
<b><b>Sample Code:</b>
<b>IUserFactory mUserFact = UMFactory.getUserFactory();
IUserMaint mUserMaint = mUserMaint = mUserFact.newUser(aUser.getLogin());
IUserAccountFactory mAccountFact =UMFactory.getUserAccountFactory();
IUserAccount portalAccount = null;
mUserMaint.setDisplayName(aUser.getLogin());
mUserMaint.setXXX();
mUserMaint.save();
mUserMaint.commit();
portalAccount = mAccountFact.newUserAccount(aUser.getLogin(), mUserMaint.getUniqueID());
mAccount.setPassword("XXXXXX");
aUser.setPassword(mPassword);
mAccount.save();
mAccount.commit();</b></b>
Thanks and Regards,
Sekar
Hi,
I have used the Java Mail API directly send the notification upon new user creation.
Thanks and Regards,
Sekar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.