Is it possible to cancel sending confirmation mail to customer? In TeaCommerce settings, in Confirmation mail "send email to customer" is checked. And I would have it this way. But customer can self decide not to receive confirmation mail (I save this in Order properties).
I have tried to use NotificationCenter.EmailTemplate.MailSending event, but I'm not sure if I can do this here.
How to cancel sending confirmation email
Hi,
Umbraco 6.1.6, TC 2.2.2
Is it possible to cancel sending confirmation mail to customer? In TeaCommerce settings, in Confirmation mail "send email to customer" is checked. And I would have it this way. But customer can self decide not to receive confirmation mail (I save this in Order properties).
I have tried to use NotificationCenter.EmailTemplate.MailSending event, but I'm not sure if I can do this here.
Kind regards
Thomas
Hi Thomas,
You can just remove the users e-mail from the mail message in the MailSending event. That would do the trick.
/Rune
Hi Rune,
And I have solved that this way. I thought that there is maybe some other way :)
Thanks
/Thomas
No magic. Just regular .NET :)
/Rune
is working on a reply...