Q:

Forgot password - I miss something

I have made custom login control for dotnenuke. Now I am trying to implement forgot password feature but I miss something I can get password by username but can't find how to send mail to user.
 UserInfo ui= UserController.GetUserByName(this.PortalId, "JohnDoe");

            string pass = UserController.GetPassword(ref ui, "");

A:

Look at the DotNetNuke.Services.Mail.Mail class.  Depending on what you want, you may just need to call Mail.SendMail(user, MessageType.PasswordReminder, portalSettings)

