* $EMAIL_FOOTER - the last part of the email - it may include a displayed footer, as well as
and other 'closing' tags * * Taken as a pair, $EMAIL_HEADER.$EMAIL_FOOTER must generate standards-compliant XHTML * * $EMAIL_BODY - the body text of the email - essentially, the message. It gets sandwiched between $EMAIL_HEADER and $EMAIL_FOOTER * This must generate standards-compliant XHTML in its own right, when taken with an appropriate header and footer section. * Within the template definition, insert the shortcode '{BODY}' to indicate where the passed text of the email is to be stored. * * $EMAIL_OVERRIDES may optionally be defined, in which case it can override default mailout settings (see later). Only define this variable * if you explicitly want overrides - a defined, but empty, variable may have unexpected consequences! * * $EMAIL_PLAINTEXT - an alternative template for the alternative text part of HTML emails. Set to empty string if hard-coded default to be used * * * Templates may be defined for specific purposes * Each template is given a name, which is the name of the variable. * This variable may be a simple string, in which case it defines the email body, and is only available via code. * Alternatively the variable may be an array, in which case each element of the array defines a different aspect of the email: * * $NAME['template_name'] is a user-friendly name shown in the mass mailer * $NAME['template_type'] takes values (user|system|all) to define its purpose - only 'user' and 'all' templates are shown in the mass mailer * $NAME['email_header'] defines the header - optional * $NAME['email_footer'] defines the footer - optional * $NAME['email_body'] defines the body text * $NAME['email_overrides'] defines any mailout settings which are to be overridden (see later) - optional * * The format and functionality of these four main array elements correspond exactly to those of the defaults already described. * * The template need only define those variables which are to be overridden, in which case the default definitions will be used for the others. * * * For templated HTML emails, a style sheet MUST be specified in the header field (if its required), in one of the following forms: * * {STYLESHEET} - embeds the stylesheet for the current site theme * {STYLESHEET=filename,link} - embeds a link to the referenced stylesheet file * {STYLESHEET=filename} - embeds the contents of the specified file * {STYLESHEET=filename,embed} - embeds the contents of the specified file * * * Where no style sheet is specified for an HTML-format email, the following applies: * If 'emailstyle.css' exists in the current theme directory, it is used * otherwise, the theme's 'style.css' is used * * The override variable is an array, which can override any of the following mailer parameters: 'mailer', 'smtp_server', 'smtp_username', 'smtp_password', 'sendmail', 'siteadminemail', 'siteadmin', 'smtp_pop3auth', 'SMTPDebug', 'subject', 'from', 'fromname', 'replyto', 'send_html', 'add_html_header', 'attachments', 'cc', 'bcc', 'bouncepath', 'returnreceipt', 'priority', 'extra_header', 'wordwrap', 'split' See e_HANDLER.mail.php for more information */ if (!defined('e107_INIT')) { exit; } // @TODO: Move signup email into templated form $includeSiteButton = e107::getPref('sitebutton'); $SIGNUPEMAIL_SUBJECT = LAN_SIGNUP_96.' {SITENAME}'; $SIGNUPEMAIL_USETHEME = 1; // Use CSS STYLE from THEME: 0 = Off, 1 = external, 2 = embedded $SIGNUPEMAIL_LINKSTYLE = ''; // css to use on links eg. color:red; //$SIGNUPEMAIL_IMAGES = e_IMAGE.$includeSiteButton; // comma separated paths to image to embed. referenced below with {IMAGE1} (IMAGE2} etc. Not required $SIGNUPEMAIL_CC = ""; // comma separated email addresses to put in CC of the signup email. $SIGNUPEMAIL_BCC = ""; // comma separated email addresses to put in BCC of the signup email. $SIGNUPEMAIL_ATTACHMENTS = ""; // files-path array of attachments. eg. array(e_FILE."myfile.zip",e_FILE."myotherfile.zip"); $SIGNUPEMAIL_BACKGROUNDIMAGE = ""; // absolute path to a background image eg. e_IMAGE."mybackground.jpg"; /*=========================================================================== DEFAULT EMAIL TEMPLATE VALUES =============================================================================*/ /** These defaults are used if not overridden by the requirements for a specific template. There are five defaults, which must exist, and must be named as follows: $EMAIL_OVERRIDES - array of override settings; e.g. for mail server to use $EMAIL_HEADER - string for the first part of an HTML email $EMAIL_BODY - the 'body' text (usually a default here is meaningless!) $EMAIL_FOOTER - a standard footer - could include a disclaimer, a link to the site $EMAIL_PLAINTEXT - an alternative template for the alternative text part of HTML emails (if empty, alternate text is derived from the HTLM body. In most cases only the body will be overridden; in this case it can be overridden using a variable rather than an array. */ /* Optional mailer admin preferences Override. The following mailer parameters can be overridden: 'mailer', 'smtp_server', 'smtp_username', 'smtp_password', 'sendmail', 'siteadminemail', 'siteadmin', 'smtp_pop3auth', 'SMTPDebug', 'subject', 'from', 'fromname', 'replyto', 'send_html', 'add_html_header', 'attachments', 'cc', 'bcc', 'bouncepath', 'returnreceipt', 'priority', 'extra_header', 'wordwrap', 'split' See e_HANDLER.mail.php for more information If required, uncomment the following block and add array elements for options to be overridden - array key is the option name DON'T put in empty fields unless you wish to set the value to an empty value! */ /* $EMAIL_OVERRIDES = array( 'bouncepath' => 'some email address', 'returnreceipt' => 1 ); */ // Not used in signup email $EMAIL_HEADER = "
{STYLESHEET}