Developer forum

Forum » Ecommerce - Standard features » Cart module - Email text/plain

Cart module - Email text/plain

Gaetan Di Caro
Reply

Hi,

I have to send an email to an automated service when an order is placed on the website. I tried to use the cart module to send an email notification with a specific template, and the email gets sent alright. However this email must be sent in text/plain instead of text/html, because it is in fixed-length lines format.

Is there a way to do that ?

Thanks !


Replies

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

You can make a Notifications.eCommerce.Cart.SendMails notification subscriber which is fired once for each cart no matter how many mails it sends. In that you can send the mail manually.

You can also Notifications.eCommerce.Cart.SendingConfirmationMail which is fired once for each mail, and detect the right one and change the type to text/plain.

You can see the arguments here: http://developer.dynamicweb.com/api8/#Dynamicweb~Dynamicweb.Notifications.eCommerce+Cart+SendingConfirmationMailArgs_members.html And an example here: http://developer.dynamicweb.com/api8/#Dynamicweb~Dynamicweb.Notifications.eCommerce+Cart+SendingConfirmationMailArgs.html

Votes for this answer: 1
 
Gaetan Di Caro
Reply

It worked, thank you !

 

You must be logged in to post in the forum