|
@@ 730-734 (lines=5) @@
|
| 727 |
|
$message = strip_tags( $message ); |
| 728 |
|
} |
| 729 |
|
|
| 730 |
|
if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) { |
| 731 |
|
Give()->emails->form_id = $form_id; |
| 732 |
|
Give()->emails->from_name = give_get_meta( $form_id, '_give_from_name', true ); |
| 733 |
|
Give()->emails->from_address = give_get_meta( $form_id, '_give_from_email', true ); |
| 734 |
|
} |
| 735 |
|
|
| 736 |
|
return $send |
| 737 |
|
? Give()->emails->send( $this->get_preview_email_recipient( $form_id ), $subject, $message, $attachments ) |
|
@@ 818-822 (lines=5) @@
|
| 815 |
|
$message = strip_tags( $message ); |
| 816 |
|
} |
| 817 |
|
|
| 818 |
|
if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) { |
| 819 |
|
Give()->emails->form_id = $form_id; |
| 820 |
|
Give()->emails->from_name = give_get_meta( $form_id, '_give_from_name', true ); |
| 821 |
|
Give()->emails->from_address = give_get_meta( $form_id, '_give_from_email', true ); |
| 822 |
|
} |
| 823 |
|
|
| 824 |
|
// Send email. |
| 825 |
|
$email_status = Give()->emails->send( $this->get_recipient( $form_id ), $subject, $message, $attachments ); |