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.
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 :)
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!
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.
is working on a reply...