Just remember that both customer and the mails on the e-mail template will recieve the mail.
If you want to remove some of the recievers or otherwise edit the e-mail, you can subscribe to the WebshopEvents.BeforeMailSend event and do you magic there.
How do i send teacommerce E-mails programmatically?
Hi!
I can not seem to find any guidance on how to send the emails in teacmommerce admin section programatically (within .NET).
Can someone help me in the right direction?
Hi Theodor
Its pretty simple - EmailTemplate.GetEmailTemplate( emailTemplateId.Value ).Send( Order.GetOrder( orderId ) );
Kind regards
Anders
Awesome!
Hi Theodor,
Just remember that both customer and the mails on the e-mail template will recieve the mail.
If you want to remove some of the recievers or otherwise edit the e-mail, you can subscribe to the WebshopEvents.BeforeMailSend event and do you magic there.
/Rune
Thank you for the note!
I can see a lot of room for magic subscribing to that event..
is working on a reply...