Community Documentation

How To: Basic E-news

Last updated September 24, 2011. Created by aaronbauman on September 23, 2011.
Edited by silverwing. Log in to edit this page.

Installation and Setup

  1. Download and install Basic E-news module (see: Installing contributed modules).
  2. Download the emogrifier class and unpack it within enews/emogrifier so that the directory structure is [path-to-modules]/enews/emogrifier/emogrifier.php
  3. Create or assign an existing content type as a Newsletter on the content type edit form ("Add a check to this box if this node type can be used as a newsletter.")
  4. [optional]: Add raw CSS, select from your theme's existing CSS files, or assign arbitrary CSS files from your filesystem to your newsletter
  5. [optional]: Add enews-specific regions to your theme's .info file, and edit the newsletter content type to include these regions.
  6. [optional]: To override the default enews template, copy enews.tpl.php to your site's theme(s) directory

Caveats and Debugging

  • When making changes to your theme -- including copying enews.tpl.php and changing your theme's .info file -- you must clear your site's theme cache!
  • If your newsletter preview does not reflect changes, re-save the newsletter node. This will force enews to regenerate and re-emogrify the exported text and HTML.

Page status

About this page

Drupal version
Drupal 6.x, Drupal 7.x
Audience
Programmers, Site administrators

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.