You are here

function mimemail_send_mail_action_submit in Mime Mail 6

Handle submission of the action form.

File

modules/mimemail_action/mimemail_action.module, line 229
Provide actions for the Mime Mail module.

Code

function mimemail_send_mail_action_submit($form, $form_state) {
  $form_values = $form_state['values'];
  $params = array(
    'key' => $form_values['key'],
    'to' => $form_values['to'],
    'cc' => $form_values['cc'],
    'bcc' => $form_values['bcc'],
    'reply_to' => $form_values['reply_to'],
    'subject' => $form_values['subject'],
    'message_html' => $form_values['message_html'],
    'message_html_filter' => $form_values['format'],
    'message_plaintext' => $form_values['message_plaintext'],
    'attachments' => $form_values['attachments'],
  );
  return $params;
}