I'm attempting to create some custom emails within uCommerce one for Forgotten Password. In previous versions of uCommerce I could follow this post from Soren http://www.publicvoid.dk/SendingEmailUsingUCommerce.aspx which was really straight forward, but the code seems a little different for uCommerce 3. Does anyone have an example or can tell me where I can get the values to instantiate a new EmailService (XXX) and get the LocalizationContext (YYY) for sending an email they seem to be the two bits I'm missing.
Current code:
var emailParams = new Dictionary<string,string>(){};
var profile = SiteContext.Current.CatalogContext.CurrentCatalogGroup.EmailProfile;
var mailService = new EmailService(XXX);
mailService.Send(YYY, profile, "ForgottenPassword", new MailAddress(""), emailParams);
Sending emails using uCommerce 3
Hello,
I'm attempting to create some custom emails within uCommerce one for Forgotten Password. In previous versions of uCommerce I could follow this post from Soren http://www.publicvoid.dk/SendingEmailUsingUCommerce.aspx which was really straight forward, but the code seems a little different for uCommerce 3. Does anyone have an example or can tell me where I can get the values to instantiate a new EmailService (XXX) and get the LocalizationContext (YYY) for sending an email they seem to be the two bits I'm missing.
Current code:
Thanks,
John
Hi John,
I updated the docs you refer to to include a code snippet for uCommerce 3.
Thanks again Soren really helpful.
is working on a reply...