Drupal - Mail | wedi

You are here

Drupal - Mail

----------------------------------------------------
I             Drupal-Mail                          I
----------------------------------------------------
 
    - Aufruf:
        drupal_mail(
            '<modulename>',
            'composemsg',
            'targetaddr',
            user_preferred_language($account),
            $arguments,
            'destaddr', // z.B. variable_get('site_mail', null); -> Admin-Mail
            true        // Autosend
        );
 
    - Hook-Mail:
        function <modulename>_mail($key, &$message, $param)
        {
            if ($key == 'composemsg')
            {
                $message['headers']['bcc'] = ...
                        ['to']
                        ['subject']
                        ['body']
            }
        }