How to send HTML email with drupal

Written by antonio hernandez
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to send HTML email with drupal
(BananaStock/BananaStock/Getty Images)

The Simplenews and Mimemail modules allow you to create and send an HTML e-mail message in the form of a newsletter issue from within Drupal. Simplenews allows you to create the message. Mimemail allows you to send the message in HTML format.

Skill level:

Things you need

  • Simplenews module
  • Mimemail module
  • File compression program
  • FTP client

Show MoreHide


  1. 1

    Download the version of Simplenews appropriate for your version of Drupal from (see the link in References). Save the file rather than opening it.

  2. 2

    Download the version of Mimemail appropriate for your version of Drupal from (see the link in References). Save the file rather than opening it.

  3. 3

    Extract the contents of your .tar.gz archives using the file compression program. Each archive will contain a folder named according to the name of the module.

  4. 4

    Open the FTP client, and log on to the server for your domain. Upload the extracted folders to the subdirectory sites/all/modules, which is located in the root of the FTP directory for your domain. Do not simply upload the contents of the folders. You must upload the folders themselves in order for your Drupal installation to recognise the newly installed modules.

  5. 5

    Log on to the administrative account for your Drupal installation.

  6. 6

    Go to the Modules administration page at Administer > Site Building > Modules, and enable the following modules: Simplenews, Simplenews Action, Mimemail and Mimemail CSS Compressor. Click the “Save Configuration” button. The current page should reload with a notification that the configuration changes have been saved. The Simplenews module will create a content type called "Newsletter Issues," which you will use to create and send your HTML e-mail messages.

  7. 7

    Edit the newsletter content type by going to Administer > Content Management > Content Types and clicking the “Edit” link in the "Newsletter Issue" row of the "Content Types" table. Expand the “Work Flow Settings” group, and uncheck the “Promoted to Front Page” checkbox. Click the “Save Content Type” button. The current page will reload, and you should see a message confirming the change.

  8. 8

    Go to Administer > User Management > Permissions, and grant the “Create Simplenews Content” permission to the user role you wish to use to create and send HTML e-mail messages: Optionally, you may grant the “Edit Own Simplenews Content” and "Delete Own Simplenews Content” permissions. Click the “Save Permissions” button.

  9. 9

    Add e-mail addresses to your subscription list by going to Administer > Content Management > Newsletters > Subscriptions > Mass Subscribe. Enter comma-separated e-mail addresses in the appropriate field, and check the box for the newsletter to which you wish to subscribe the addresses. Click the “Subscribe” button to save your changes. You are now ready to create and send your HTML e-mail message.

  10. 10

    Log off the administrator account, and log on as a user with a role to which you have granted the “Create Simplenews Content” permission.

  11. 11

    Click the “Creat Content” link in the navigation section, and choose “Newsletter Issue” as your content type. This will be your HTML e-mail. Give the newsletter issue an appropriate title.

  12. 12

    Supply the contents of the newsletter issue using appropriate HTML code. Adjust other settings as appropriate, and click the “Save” button to save your changes and send your newly created newsletter issue as an HTML e-mail message to the email addresses in your subscription list. You may optionally click the “Preview” button to preview your e-mail message before clicking the “Save” button.

Tips and warnings

  • Remember to enable the Newsletter block in Administer > Site Building > Blocks. This will encourage visitors to subscribe to your newsletter so that you do not have to enter addresses manually.
  • The Simplenews module allows you to designate other existing content types as newsletter issues. For example, you might prefer to send show notes of a content type called "Podcast Episode" along with a download link to the appropriate media file. Go to Administer > Site Configuration > Simplenews > General. Check the boxes corresponding to the content types you wish to treat as newsletter issues, and click the “Save Configuration” button. Create your newsletter content using a newly designated content type, and save it using normal procedures.
  • Use the Simplenews Template module to specify preliminary formatting for your e-mails, such as headers and footers.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.