0

I am using kentico 7 and i want to add email header while sending news letter through SMTP.

This is the common feature that we used. I want to send some information with header in mail while sending newsletter. Is there any xml in kentiko or code-behind through which I can set header and send it to the subscriber.

1 Answer 1

0

You will have to customize EmailQueueManager (in CMS.Newsletter namespace). There is a method

SendEmail(...)

which creates instance of EmailMessage. You can add headers to its Headers property. Unfortuantely there is no easier way to do that.

5
  • The value which we have set in the header is dynamic. In this solution how would be pass value to SendEmail? Apr 22, 2013 at 14:23
  • what kind of value it is? could it be stored e.g. in session?
    – rocky
    Apr 22, 2013 at 15:31
  • Its category that we want to send in each mail using header so we can use this in sendgrid API for fetching data on basis of category Apr 24, 2013 at 6:32
  • did you guys find a solution? I am doing something very similar with unique-args and sendgrid - thanks
    – Ben E G
    Mar 25, 2014 at 3:26
  • i developed a soln to tag emails up from EMS -> SendGrid -> Keen.IO. thanks anyway
    – Ben E G
    Mar 26, 2014 at 2:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.