HI, thanks for the reply.
I have the following lines under ProfileUpdateCompleted() in ManagerUser.ascx.vb
Dim myusers as New UserController()
Dim myuser as UserInfo = myusers.GetUser(PortalId, userId)
DotNetNuke.Services.Mail.Mail.SendMail("reply-to@12345.com", PortalSettings.email, "", "Email subject","username=" +user.Username + ", " + user.Profile.ProfileProperties.GetByName("City"),"", "HTML", "", "", "", "")
When I hit [UPDATE] in the Manage Profile page, it results as the following error and no email was sent.
A critical error has occurred.
Object reference not set to an instance of an object.
Did I miss anything?
What's the difference between GetByName and GetPropertyValue ?
Thank you in advance.