Developer forum

Forum » Ecommerce - Standard features » Add CC email in Abandoned cart emails

Add CC email in Abandoned cart emails

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

One of our customers asked us to include an admin email in all notifications sent for Abandoned carts.

As far as I can tell, there is no way I can do that from the email settings.

Is there any work around that I can use without creating a custom ReceipientProvider?

Than you,
Adrian 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Adrian

I do not think creating a custom recipient provider would work. It will return a list of recipients each getting their own email - adding a recipient to the returned collection would not give you what you want.

Instead use a Dynamicweb.Mailing.EmailNotifications.OnBeforeEmailSend notification subscriber - the arguments passed to that, EmailSendNotificationArgs, has the MailMessage instance. Detect if it is a aboned cart email and then add a CC recipient on the Message instance on the args.

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you. Sounds like a good and clean solution.


Adrian

 

You must be logged in to post in the forum