@@ 725-729 (lines=5) @@ | ||
722 | $message = strip_tags( $message ); |
|
723 | } |
|
724 | ||
725 | if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) { |
|
726 | Give()->emails->form_id = $form_id; |
|
727 | Give()->emails->from_name = give_get_meta( $form_id, '_give_from_name', true ); |
|
728 | Give()->emails->from_address = give_get_meta( $form_id, '_give_from_email', true ); |
|
729 | } |
|
730 | ||
731 | return $send |
|
732 | ? Give()->emails->send( $this->get_preview_email_recipient( $form_id ), $subject, $message, $attachments ) |
|
@@ 813-817 (lines=5) @@ | ||
810 | $message = strip_tags( $message ); |
|
811 | } |
|
812 | ||
813 | if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) { |
|
814 | Give()->emails->form_id = $form_id; |
|
815 | Give()->emails->from_name = give_get_meta( $form_id, '_give_from_name', true ); |
|
816 | Give()->emails->from_address = give_get_meta( $form_id, '_give_from_email', true ); |
|
817 | } |
|
818 | ||
819 | // Send email. |
|
820 | $email_status = Give()->emails->send( $this->get_recipient( $form_id ), $subject, $message, $attachments ); |