hi,
I have a create user wizard for new members to register.
When the Created user event fires I insert the form data to my database and then send
the new User a WELCOME email. Problem is it takes almost 2 hours to arrrive but
If I use the method to add another email address that arrives instantly.; see code below
protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
{
CreateUserWizard cuw = (CreateUserWizard)sender;
MembershipUser user = Membership.GetUser(cuw.UserName);
Guid userId = (Guid)user.ProviderUserKey;
MailMessage mail = new MailMessage();
mail.IsBodyHtml = true;
mail.Subject = "xxxxxxxx";
mail.Body = "<html><body>" +
"<h3 style='color:#999966; font-family:Verdana'>" + "Hi" + " " + cuw.UserName + "," + "</h3>" +
"& ...
Go to the complete details ...