PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.16.1.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.16.1.2
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmEmailSummary.php +0 -7 6.266.16.1.2 View file →
@@ -2,9 +2,8 @@
2 2 /**
3 3 * Summary email base class
4 4 *
5 5 * @since 6.7
6 - *
7 6 * @package Formidable
8 7 */
9 8
10 9 if ( ! defined( 'ABSPATH' ) ) {
@@ -93,9 +92,8 @@
93 92 * @return false|string
94 93 */
95 94 protected function get_content() {
96 95 $args = $this->get_content_args();
97 -
98 96 if ( false === $args ) {
99 97 return false;
100 98 }
101 99
@@ -111,9 +109,8 @@
111 109 /**
112 110 * Gets include file path from the given file name.
113 111 *
114 112 * @param string $file_name File name.
115 - *
116 113 * @return string
117 114 */
118 115 protected function get_include_file( $file_name ) {
119 116 $suffix = $this->is_html ? '' : '-plain';
@@ -179,9 +176,8 @@
179 176 return false;
180 177 }
181 178
182 179 $recipients = $this->get_recipients();
183 -
184 180 if ( ! $recipients ) {
185 181 // Return true to not try to send this email on the next day.
186 182 return true;
187 183 }
@@ -186,18 +182,15 @@
186 182 return true;
187 183 }
188 184
189 185 $content = $this->get_content();
190 -
191 186 if ( false === $content ) {
192 187 return true;
193 188 }
194 -
195 189 $subject = $this->get_subject();
196 190 $headers = $this->get_headers();
197 191
198 192 $sent = wp_mail( $recipients, $subject, $content, $headers );
199 -
200 193 if ( ! $sent ) {
201 194 $headers = implode( "\r\n", $headers );
202 195 $sent = mail( $recipients, $subject, $content, $headers );
203 196 }