You are here

function mimemail_rules_action_info in Mime Mail 6

Same name and namespace in other branches
  1. 7 mimemail.rules.inc \mimemail_rules_action_info()

Implements hook_rules_action_info().

File

includes/mimemail.rules.inc, line 14
Rules actions for sending MIME-encoded e-mails.

Code

function mimemail_rules_action_info() {
  return array(
    'mimemail_rules_action_mail_to_user' => array(
      'label' => t('Send an HTML mail to a user'),
      'arguments' => array(
        'user' => array(
          'type' => 'user',
          'label' => t('Recipient'),
        ),
      ),
      'module' => 'Mime Mail',
      'eval input' => array(
        'key',
        'sender',
        'from',
        'to',
        'cc',
        'bcc',
        'reply_to',
        'subject',
        'message_html',
        'message_plaintext',
        'attachments',
      ),
    ),
    'mimemail_rules_action_mail' => array(
      'label' => t('Send an HTML mail to an arbitrary mail address'),
      'module' => 'Mime Mail',
      'eval input' => array(
        'key',
        'sender',
        'from',
        'to',
        'cc',
        'bcc',
        'reply_to',
        'subject',
        'message_html',
        'message_plaintext',
        'attachments',
      ),
    ),
    'mimemail_rules_action_mail_to_users_of_role' => array(
      'label' => t('Send an HTML mail to all users of a role'),
      'module' => 'Mime Mail',
      'eval input' => array(
        'key',
        'sender',
        'from',
        'to',
        'cc',
        'bcc',
        'reply_to',
        'subject',
        'message_html',
        'message_plaintext',
        'attachments',
      ),
    ),
  );
}