psy e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
..
languages e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
lib e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
pages e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
vendor e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
views e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
.travis.yml e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
CHANGES.txt e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
README.md e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
composer.json e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
composer.lock e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
manifest.xml e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前
start.php e48014c2e0 moved from https://github.com/epsylon/Elgg-Lorea-Hydra 6 年之前

README.md

HTML Email Handler

Build Status Latest Stable Version License

Send out full HTML mails to your users

Features

  • Send out full HTML notifications to your users (also supported by webmail like GMail)
    • can be toggle in the admin settings
    • to customise it for your own theme overrule the view default/html_email_handler/notification/body.php
  • Offers mail function for developers html_email_handler_send_email()
    • see /lib/functions.php for more information
  • Offers CSS conversion to inline CSS (needed for webmail support) html_email_handler_css_inliner($html_text)
    • see lib/functions.php for more information
  • Allows file attachments support in notify_user (see File attachments support below)

Administrators, Developers & Designers

If you have the developers plugin enabled you can easily design the layout of your HTML message, check the Theming sandbox.
Otherwise you can go to the test url to design the layout.

Conflicts

As this plugin offers some of the same functionality as other plugins their may be a conflict. Please check if you have one (or more) of the following

File attachements notes and documentation

File attachments support :

If you wish to add file attachments to email notifications, you can use the notify_user function and pass it an "attachments" key, with $params['attachments'] :

    $attachments[] = array(
        'content' => $file_content, // File content
        //'filepath' => $file_content, // Alternate file path for file content retrieval
        'filename' => $file_content, // Attachment file name
        'mimetype' => $file_content, // MIME type of attachment
    );

Note that $attachments is an array, so you can pass several files at once, each with a custom filename and MIME type.

Warning: don't use 'filepath' setting on a production site (not functional yet)