Developer forum

Forum » Feature requests » Feature request for Dynamicweb.Notifications.eCommerce.Cart.SendingConfirmationMail

Feature request for Dynamicweb.Notifications.eCommerce.Cart.SendingConfirmationMail

Allan Iversen
Reply

I am building a Dynamicweb.Notifications.eCommerce.Cart.SendingConfirmationMail notificationsubscriber and I want to munipulate the mail recipient - this is a quite simple, but in some cases I want to send out the mail to more than one recipient. The Mails property only has a get accessor and is also returning an IEnumerable. Is there any way to add / munipulate this list?

 

Could you guys change the return type to List? Or add a set accessor to the property?

 

- Allan


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

The Mails property is a property on the ModuleSettings object on the SendingConfirmationMailArgs - and comes from the paragraph settings and should/can therefore not be overridden.

 

But the SendingConfirmationMailArgs also has a MailMessage (System.Net.Mail.MailMessage) property, and that is the mail being send out. With that one you can do anything that is possible with a MailMessage (http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.aspx).

 

I.e. adding a new recipient:

MailMessage.To.Add(New System.Net.Mail.MailAddress(";some@other.com", "Some Other", System.Text.Encoding.UTF8))

 

Hope this helps!

 

BR Nicolai

Votes for this answer: 1
 
Allan Iversen
Reply

Hi Nicolai,

Ahh - I missed that one. Thanks!

- Allan