You are here

function mimemail_send_email_action_submit in Mime Mail 7

Handle submission of the action form.

File

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

Code

function mimemail_send_email_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'],
    'body' => $form_values['body']['value'],
    'format' => $form_values['body']['format'],
    'plaintext' => $form_values['plaintext'],
    'attachments' => $form_values['attachments'],
  );
  return $params;
}