You are here

function mimemail_incoming in Mime Mail 5

Same name and namespace in other branches
  1. 6 includes/mimemail.incoming.inc \mimemail_incoming()
  2. 7 includes/mimemail.incoming.inc \mimemail_incoming()

Parses an externally received message.

Parameters

$message: The message to parse.

1 call to mimemail_incoming()
mimemail_post in ./mimemail.module
Receive messages POSTed from an external source.
2 string references to 'mimemail_incoming'
mimemail_menu in ./mimemail.module
Implementation of hook_menu()
mimemail_settings in ./mimemail.module
Administration settings.

File

./mimemail.module, line 399
Component module for sending Mime-encoded emails.

Code

function mimemail_incoming($message) {
  require_once dirname(__FILE__) . '/mimemail.inc';
  $mail = mimemail_parse($message);
  foreach (module_implements('mimemail_incoming_alter') as $module) {
    call_user_func_array($module . '_mimemail_incoming_alter', $mail);
  }
  module_invoke_all('mimemail_incoming', $mail);
}