eCommerce email notifications - customize TO: or CC: field

Bart Lewandowski asked on December 12, 2018 16:01

Hi, Is it possible at all to customize what address do I send the order notification/payment notification emails to? Some customers wants order notifications sent to main user email, but payment notification to their accounts dept. I got these emails addresses in custom table (tied to the given customer), but on the email template there is no To: field at all, and if I try to use macro in CC field, it complains about wrong format.

Recent Answers


Suneel Jhangiani answered on December 12, 2018 16:50

It's been a while since I did this, but I believe you should look at overriding the SendEmailNotificationInternal() method by implementing a custom OrderInfoProvider class. This method gets passed in the ShoppingCart object which is used to get the CustomerInfo and thereby the email address.

I do believe there are several SendOrderXXXXNotification() methods and you may be able to override just the payment notification, but by default Kentico internally just feeds these through to the SendEmailNotification() method.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.