Skip to Content
0
Former Member
Oct 15, 2007 at 12:26 PM

EMail Notification for the Newly Created users using UME API

30 Views

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