Im trying to replicate this solution to this thread (this thread) to help me send an email to the user when they are created as a member within the checkout process.
I have a class in the App_Code folder named CreateMemberAndSendPassword.cs and im having trouble with the syntax could someone possibly point out what i should be doing, i think its something simple im just missing.
var emailService = newEmailService();
var emailProfile = SiteContext.Current.CatalogContext.CurrentCatalogSet.EmailProfiles.Single();
emailService.Send(emailProfile, "WelcomeEmail", newMailAddress(PurchaseOrder.Customer.EmailAddress), parameters);
Its erroring at EmailService() it needs a parameter of IContentService? CurrentCatalogSet connat be reloved and the emailService.Send is missing a parameter.
Any ideas what params i should be passing in for emailService.Send ? I kind of get the emailservice.send to work by doing this
Email member login username and password in checkout
Hi
Im trying to replicate this solution to this thread (this thread) to help me send an email to the user when they are created as a member within the checkout process.
I have a class in the App_Code folder named CreateMemberAndSendPassword.cs and im having trouble with the syntax could someone possibly point out what i should be doing, i think its something simple im just missing.
Its erroring at EmailService() it needs a parameter of IContentService? CurrentCatalogSet connat be reloved and the emailService.Send is missing a parameter.
Any ideas what params i should be passing in for emailService.Send ? I kind of get the emailservice.send to work by doing this
but im unsure thats the correct params i should be passing.
Any ideas?
Ok i think ive sorted it, i did a bit more googling and found this :)
Ive yet to test but it looks right
is working on a reply...