function mimemail_rules_action_mail_form in Mime Mail 6
Action "Send an HTML mail to an arbitrary mail address" configuration form.
File
- includes/
mimemail.rules_forms.inc, line 83 - Rules actions for sending MIME-encoded e-mails (settings forms).
Code
function mimemail_rules_action_mail_form($settings = array(), &$form) {
$settings += array(
'to' => '',
'cc' => '',
'bcc' => '',
);
$form['settings']['to'] = array(
'#type' => 'textfield',
'#title' => t('Recipient'),
'#default_value' => $settings['to'],
'#description' => t("The mail's recipient address. You may separate multiple addresses with comma."),
'#required' => TRUE,
'#weight' => -1,
);
$form['settings']['cc'] = array(
'#type' => 'textfield',
'#title' => t('CC Recipient'),
'#default_value' => $settings['cc'],
'#description' => t("The mail's carbon copy address. You may separate multiple addresses with comma."),
'#required' => FALSE,
'#weight' => 0,
);
$form['settings']['bcc'] = array(
'#type' => 'textfield',
'#title' => t('BCC Recipient'),
'#default_value' => $settings['bcc'],
'#description' => t("The mail's blind carbon copy address. You may separate multiple addresses with comma."),
'#required' => FALSE,
'#weight' => 0,
);
mimemail_rules_action_mail_to_user_form($settings, $form);
}