how to send the username with Maildefinition?
Hi,
I want to send the pasword with MailDefinition when someone creates an
account with CreateUserWizard control.
I created a textfile and it works.
My problem is: i would like to send the new created username together with the password, so i did:
Welcome ##user##, <br><br>
Your password is: ##password## <br><br>
etc..
The code-behind:
Protected Sub CreateUserWizard1_SendingMail(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MailMessageEventArgs) Handles CreateUserWizard1.SendingMail
e.Message.Body = e.Message.Body.Replace("##user##", User.Identity.Name)
e.Message.Body = e.Message.Body.Replace("##password##",
CreateUserWizard1.Password)
But the account name doesn't appear in the mail (no error).
Is it maybe because the username is not yet created?
Thanks
H.
|