|
@@ 667-671 (lines=5) @@
|
| 664 |
|
Give()->emails->__set( 'template', $this->get_email_template( $form_id ) ); |
| 665 |
|
|
| 666 |
|
// Format plain content type email. |
| 667 |
|
if ( 'text/plain' === $content_type ) { |
| 668 |
|
Give()->emails->__set( 'html', false ); |
| 669 |
|
Give()->emails->__set( 'template', 'none' ); |
| 670 |
|
$message = strip_tags( $message ); |
| 671 |
|
} |
| 672 |
|
|
| 673 |
|
if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) { |
| 674 |
|
Give()->emails->form_id = $form_id; |
|
@@ 741-745 (lines=5) @@
|
| 738 |
|
// Set email template. |
| 739 |
|
Give()->emails->__set( 'template', $this->get_email_template( $form_id ) ); |
| 740 |
|
|
| 741 |
|
if ( 'text/plain' === $content_type ) { |
| 742 |
|
Give()->emails->__set( 'html', false ); |
| 743 |
|
Give()->emails->__set( 'template', 'none' ); |
| 744 |
|
$message = strip_tags( $message ); |
| 745 |
|
} |
| 746 |
|
|
| 747 |
|
if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) { |
| 748 |
|
Give()->emails->form_id = $form_id; |