home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (mimemail_compress.module)

This example Drupal source code file (mimemail_compress.module) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

2010/10/30, exp, function, id, mailkey, math, message, mimemail_compress, mimemail_compress_clean_message, mimemail_compress_mail_post_process, new, output, php, sgabe

The mimemail_compress.module Drupal example source code

<?php // $Id: mimemail_compress.module,v 1.3.2.3 2010/10/30 18:00:24 sgabe Exp $

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

/**
 * Mimemail postprocess
 */
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
  $output = new mimemail_compress($parts['html'], $parts['css']);
  $output = $output->compress();
  $message = $output;
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal mimemail_compress.module source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.