Hi Ivana,
Thanks for your response.
The encoder didn't help.
So what I do in steps:
1) I've got an html email template in kentico, this template has a few custom variables in it declareded like: {% ProcessCustomMacro("productlijst", "") %} etc.
2) This is what I do at an page after the shoppingprocess:
OrderInfo orderinfo = OrderInfoProvider.GetOrderInfo(Convert.ToInt32(OgoneResponse.OrderId));
EmailTemplateInfo template = EmailTemplateProvider.GetEmailTemplate("T4U.ETicketBetaling", CMSContext.CurrentSite.SiteName);
EmailMessage message = new EmailMessage();
message.Subject = "Ticket4U - Betalingsbevestiging E-Ticket - " + OgoneResponse.OrderId.ToString();
message.Recipients = CustomerInfoProvider.GetCustomerInfo(orderinfo.OrderCustomerID).CustomerEmail;
//message.Body = template.TemplateText;
CMS.GlobalHelper.MacroResolver resolver = new CMS.GlobalHelper.MacroResolver();
resolver.ResolveMacros(message.Body);
EmailSender.SendEmailWithTemplateText(CMSContext.CurrentSiteName, message, template, resolver, true);
Now I've made a customresolver in app_code/global/cms/cmscustom.cs.
The method in this resolver contains that it replaces the {% ProcessCustomMacro("productlijst", "") %} with:
<table border='1px' cellpadding='5' cellspacing='0' style='border: solid 1px Silver; font-size: x-small;'><tr align='left' valign='top'><td align='left' valign='top'>Product Naam</td><td align='left' valign='top'>Aantal</td><td align='left' valign='top'>Prijs Per Product (exl. btw)</td></tr></table>
Now the problem is that when he sends the mail he decodes the html I send and makes it:
<table border='1px' cellpadding='5' cellspacing='0' style='border: solid 1px Silver; font-size: x-small;'><tr align='left' valign='top'><td align='left' valign='top'>Product Naam</td><td align='left' valign='top'>Aantal</td><td align='left' valign='top'>Prijs Per Product (exl. btw)</td></tr></table>
As you this is not what I want to send to my customers because the email wont show this in html.
Hope you can help me with the problem, thanks in advance.