Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • John Walker 41 posts 136 karma points
    Jan 08, 2013 @ 09:49
    John Walker
    0

    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:

    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);

     

    Thanks,

    John

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 08, 2013 @ 09:53
    Søren Spelling Lund
    100

    Hi John,

    I updated the docs you refer to to include a code snippet for uCommerce 3.

  • John Walker 41 posts 136 karma points
    Jan 08, 2013 @ 09:59
    John Walker
    0

    Thanks again Soren really helpful.

Please Sign in or register to post replies

Write your reply to:

Draft