Developer forum
E-mail notifications
Attaching file to confirmation mail.
Should I write my own checkout handler or what is the best way to go?
Replies
You cannot hook into the mail being sent as it is now - but you can create an observer for Notifications.eCommerce.Cart.SendMails that is broadcastet just before DW sends out the mails. In there you can create your own or additional mail containing the XML document.
have created a backlog item that will broadcast a notification for every mail send.
have created a backlog item that will broadcast a notification for every mail send.
It would be great if the NotificationArgs object then exposed a proper MailMessage instance, enabling our code to modify the message in any way we see fit (add recipients, change subject / content, add attachments, embed images and so on). Is that something you had in mind for this backlog item as well?
Imar
Of course.
This is the task I registered:
****
We have Notifications.eCommerce.Cart.SendMails in eCommerce.Cart.Frontend.SendMails - I also want a notification inside the
For Each recipientMail As Net.Mail.MailAddress In recipients.Distinct() loop with the mail object, recipient object, order object and modulesettings object.
The parsed arguments object should also have a property called "SkipSending" or something like that, that, when set to true, will skip sending that mail.
Can be used for attaching stuff to mails etc.
****
Perfect!
Imar
You must be logged in to post in the forum