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.

  • James Paquette 11 posts 41 karma points
    Jun 11, 2013 @ 05:02
    James Paquette
    0

    Need help with EmailService

    I've been working on an extension for order management in the backend interface using c#,  My goal is to set up a simple form that will let a shopkeeper put in a message to send in an email template to a customer when they fulfill the order.  I've already set up the email template and form dialog, but I can't get the Emailservice to work.

    When I try to create an instance of Emailservice, I keep getting an error that says no overloaded function of Emailservice takes 0 arguments, even though it seems to be the case in the documentation here:  http://www.ucommerce.dk/docs/html/T_UCommerce_Transactions_EmailService.htm .  From what I can tell the only acceptable way to create an instance is to use EmailService(ILocalizationContext), but I have no idea what to pass it for the ILocalizationContext.

    I would really appreciate some step by step help on how to create an instance of EmailService.

    Thanks!

  • Morten Skjoldager 440 posts 1499 karma points
    Jun 14, 2013 @ 10:32
    Morten Skjoldager
    0

    Hi James,

    Those messages, are they somehow custom ? Or is it the same every time ? In that case you can just reuse the SendEmailTask from checkout pipeline, using another email type than orderconfirmation. You would have to setup another email type also in that case.

    Otherwise just Resolve it from the container instead of doing "new EmailService()", like so:

    var emailService = ObjectFactory.Instance.Resolve<IEmailService>();

     

    It will give you everything you need to get going :)

    Hope that helps.

Please Sign in or register to post replies

Write your reply to:

Draft