an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > New Registration Welcome Email
Last Post 6/9/2009 5:14:06 PM By lukezy. 5 replies.
6/4/2009 3:59:11 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
New Registration Welcome Email
Hi Luke,
 
This is a Template for New User Registraion
<subject>Welcome New Registration</subject>
<html>
<head>
    <title>Your New registration with %Store.Name%</title>
</head>
<body bgcolor="#FFFFFF" link="#0066CC">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left">
        <a href="%Store.URL%"><img src="%Store.Logo%" border="0" /></a>
    </td>
  </tr>
</table>
    <div>Dear %UserName%</div><br />
    <div>Thank you for registering on the XXX Store website.</div>
    <div>Should you have any questions or concerns, you can reach us at </div>

 
 
    <br /><br />
    Hope to see you online soon!<br /><br />
    <div>-%Store.Name%</div>
   
</body>
</html>
 
 
What is the code snipete to send an email to the User after Compltion of registration on clicking the continue Button
 
 
 
bahram
6/4/2009 4:11:13 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: New Registration Welcome Email
You can add the following code to the method CreateUserWizard1_CreatedUser in web\control\core\register.ascx.cs file.
 
 
            NameValueCollection tokens = CoreHelper.GetSiteTokens();
            tokens.Add("UserName", CreateUserWizard1.UserName);
            EmailManager.Send("NewUser", tokens, tokens["Store.SiteEmailAddress"], new string[] { CreateUserWizard1.Email });
DotShoppingCart Staff
6/8/2009 1:54:12 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: New Registration Welcome Email
It had errors, but then worked. 
6/8/2009 1:54:14 PM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: New Registration Welcome Email
 
Thanks
6/9/2009 10:53:27 AM
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
Re: New Registration Welcome Email
What will be the code for  the mail to be sent after user pressing continue button.
 
6/9/2009 5:14:06 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: New Registration Welcome Email
bahram, please don't delete the content after you post it. It makes forum post looks really bad.
DotShoppingCart Staff