I am working on a project where I need to add some custom headers to the email which we send to the user on registration. Is there a module which support this functionality?

  • The HTML Mail module (drupal.org/project/htmlmail) looks like a good place to start.
    – Jimajamma
    Apr 13 '13 at 13:37
  • so @Syed Hashim : could you comment us if Mail Headers module linked in my answer below fits your needs ?
    – Kojo
    Apr 21 '13 at 21:44

Have a look at Mail Headers project. As says doc, it allows you to control and modify any (almost any) mail header.

  • I used swift mailer. It supports the HTML tags in email templates.
    – user7048
    Apr 24 '13 at 6:41

You can add a custom header to the email by using a custom module that uses hook_mail_alter() to set the custom email headers.

You can also use these contrib modules:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy