|
@@ 717-721 (lines=5) @@
|
| 714 |
|
$message = strip_tags( $message ); |
| 715 |
|
} |
| 716 |
|
|
| 717 |
|
if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) { |
| 718 |
|
Give()->emails->form_id = $form_id; |
| 719 |
|
Give()->emails->from_name = give_get_meta( $form_id, '_give_from_name', true ); |
| 720 |
|
Give()->emails->from_address = give_get_meta( $form_id, '_give_from_email', true ); |
| 721 |
|
} |
| 722 |
|
|
| 723 |
|
return Give()->emails->send( $this->get_preview_email_recipient( $form_id ), $subject, $message, $attachments ); |
| 724 |
|
} |
|
@@ 794-798 (lines=5) @@
|
| 791 |
|
$message = strip_tags( $message ); |
| 792 |
|
} |
| 793 |
|
|
| 794 |
|
if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) { |
| 795 |
|
Give()->emails->form_id = $form_id; |
| 796 |
|
Give()->emails->from_name = give_get_meta( $form_id, '_give_from_name', true ); |
| 797 |
|
Give()->emails->from_address = give_get_meta( $form_id, '_give_from_email', true ); |
| 798 |
|
} |
| 799 |
|
|
| 800 |
|
// Send email. |
| 801 |
|
$email_status = Give()->emails->send( $this->get_recipient( $form_id ), $subject, $message, $attachments ); |