You are here

mimemail_compress.module in Mime Mail 7

Same filename and directory in other branches
  1. 6 modules/mimemail_compress/mimemail_compress.module

Component module for sending Mime-encoded emails.

File

modules/mimemail_compress/mimemail_compress.module
View source
<?php

/**
 * @file
 * Component module for sending Mime-encoded emails.
 */

/**
 * Implements mail_post_process().
 */
function mimemail_compress_mail_post_process(&$message, $mailkey) {
  module_load_include('inc', 'mimemail_compress');

  // Separate CSS from HTML for processing.
  $parts = mimemail_compress_clean_message($message);

  // Compress HTML and CSS into combined message.
  if (!empty($parts)) {
    $output = new mimemail_compress($parts['html'], $parts['css']);
    $output = $output
      ->compress();
    $message = $output;
  }
}

Functions

Namesort descending Description
mimemail_compress_mail_post_process Implements mail_post_process().