diff --git a/htmlmail--htmlmail.tpl.php b/htmlmail--htmlmail.tpl.php deleted file mode 100644 index 2d95c67..0000000 --- a/htmlmail--htmlmail.tpl.php +++ /dev/null @@ -1,32 +0,0 @@ - -

HTML Mail test message

-
- -
- -
-
-

- To customize this test message: -

  1. - Visit admin/config/system/htmlmail - and select a theme to hold your custom email template files. -

    1. - Visit admin/appearance - to enable your selected theme. -

      1. - Copy the - htmlmail--htmlmail.tpl.php - file to your theme directory - . -

      2. - Edit the copied file. -

-
- value) pairs. - * - $from: The configured sender address. - * - $to: The recipient subscriber email address. - * - $subject: The message subject line. - * - $body: The formatted message body. - * - $language: The language object for this message. - * - $params: An array containing the following keys: - * - context: An array containing the following keys: - * - account: The recipient subscriber account object, which contains - * the following useful properties: - * - snid: The simplenews subscriber id, or NULL for test messages. - * - name: The subscriber username, or NULL. - * - activated: The date this subscription became active, or NULL. - * - uid: The subscriber user id, or NULL. - * - mail: The subscriber email address; same as $message['to']. - * - language: The subscriber language code. - * - tids: An array of taxonomy term ids. - * - newsletter_subscription: An array of subscription ids. - * - node: The simplenews newsletter node object, which contains the - * following useful properties: - * - changed: The node last-modified date, as a unix timestamp. - * - created: The node creation date, as a unix timestamp. - * - name: The username of the node publisher. - * - nid: The node id. - * - title: The node title. - * - uid: The user ID of the node publisher. - * - newsletter: The simplenews newsletter object, which contains the - * following useful properties: - * - nid: The node ID of the newsletter node. - * - name: The short name of the newsletter. - * - description: The long name or description of the newsletter. - * - $template_path: The relative path to the template directory. - * - $template_url: The absolute url to the template directory. - * - $theme: The name of the selected Email theme. - * - $theme_path: The relative path to the Email theme directory. - * - $theme_url: The absolute url to the Email theme directory. - */ - $template_name = basename(__FILE__); - $current_path = realpath(NULL); - $current_len = strlen($current_path); - $template_path = realpath(dirname(__FILE__)); - if (!strncmp($template_path, $current_path, $current_len)) { - $template_path = substr($template_path, $current_len + 1); - } - $template_url = url($template_path, array('absolute' => TRUE)); -?> - - - -
- -
- -
-
-

- To customize your simplenews messages: -

  1. - Visit admin/config/system/htmlmail - and select a theme to hold your custom email template files. -

  2. - Visit admin/appearance - to enable your selected theme. -

  3. - Edit your
    - -
    file. -

  4. - Copy
    - -
    to
    - -

  5. - For general Simplenews message customization, copy
    - -
    to
    - -

  6. - For message-specific customization, copy
    - -
    to one of the following: -

    • - htmlmail--simplenews--node.tpl.php -

      - Regular newsletter template. -

    • - htmlmail--simplenews--subscribe.tpl.php -

      - New subscriber confirmation message. -

    • - htmlmail--simplenews--test.tpl.php -

      - Test newsletter. -

    • - htmlmail--simplenews--unsubscribe.tpl.php -

      - Unsubscribe confirmation message. -

  7. - Edit the copied file. -

  8. - Send a test message to make sure your customizations worked. -

  9. - If you think your customizations would be of use to others, - please contribute your file as a feature request in the - issue queue. -

- The simplenews module sets the $params variable. - For this message, -

-$params = 
-  

-
- value) pairs. - * - $from: The configured sender address. - * - $to: The recipient email address. - * - $subject: The message subject line. - * - $body: The formatted message body. - * - $language: The language object for this message. - * - $params: An array containing the following keys: - * - account: The user object whose password is being requested, which - * contains the following useful properties: - * - uid: The user-id number. - * - name: The user login name. - * - mail: The user email address. Should be the same as $to. - * - theme: The user-chosen theme, or a blank string if unset. - * - signature: The user signature block. - * - signature_format: The text input filter used to format the signature. - * - created: Account creation date, as a unix timestamp. - * - access: Account access date, as a unix timestamp. - * - login: Account login date, as a unix timestamp. - * - status: Integer 0 = disabled; 1 = enabled. - * - timezone: User timezone, or NULL if unset. - * - language: User language, or blank string if unset. - * - picture: Path to user picture, or blank string if unset. - * - init: The email address used to initially register this account. - * - data: User profile data, as a serialized string. - * - roles: Array of roles assigned to this user, as (rid => role_name) - * pairs. - * - $template_path: The relative path to the template directory. - * - $template_url: The absolute url to the template directory. - * - $theme: The name of the selected Email theme. - * - $theme_path: The relative path to the Email theme directory. - * - $theme_url: The absolute url to the Email theme directory. - */ - $template_name = basename(__FILE__); - $current_path = realpath(NULL); - $current_len = strlen($current_path); - $template_path = realpath(dirname(__FILE__)); - if (!strncmp($template_path, $current_path, $current_len)) { - $template_path = substr($template_path, $current_len + 1); - } - $template_url = url($template_path, array('absolute' => TRUE)); -?> -
- -
- -
-
-

- To customize your user password reset messages: -

  1. - Visit admin/config/system/htmlmail - and select a theme to hold your custom email template files. -

  2. - Visit admin/build/themes - to enable your selected theme. -

  3. - Edit your
    - -
    file. -

  4. - Copy
    - -
    to
    - -

  5. - For general user-module message customization, copy
    - -
    to
    - -

  6. - Copy
    - -
    to
    - . -

  7. - Edit the copied file. -

  8. - Send a test message to make sure your customizations worked. -

  9. - If you think your customizations would be of use to others, - please contribute your file as a feature request in the - issue queue. -

- The user module sets the $params variable. - For this message, -

-$params = 
-  

-
-