PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.38
Timetics – Appointment Booking Calendar & Scheduling v1.0.38
1.0.62 1.0.63 1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 All 64 releases
← All changes | core/emails/email.php +2 -11 1.0.621.0.38 View file →
@@ -6,10 +6,8 @@
6 6 */
7 7
8 8 namespace Timetics\Core\Emails;
9 9
10 -defined( 'ABSPATH' ) || exit;
11 -
12 10 /**
13 11 * Class Email
14 12 */
15 13 abstract class Email {
@@ -50,20 +48,13 @@
50 48 *
51 49 * @return string
52 50 */
53 51 public function get_headers() {
54 - $charset = get_bloginfo( 'charset' );
55 - $charset = $charset ? $charset : 'UTF-8';
56 -
57 52 $headers = 'MIME-Version: 1.0' . "\r\n";
58 - $headers .= 'Content-type: text/html; charset=' . $charset . "\r\n";
53 + $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
59 54 $from = get_bloginfo( 'name' );
60 55 $from_email = timetics_get_option('booking_created_customer_email_from');
61 -
62 - if ( function_exists( 'mb_encode_mimeheader' ) ) {
63 - $from = mb_encode_mimeheader( $from, $charset );
64 - }
65 -
56 +
66 57 // Append the "From" header
67 58 $headers .= 'From: ' .$from. ' <' . $from_email . '> ' . "\r\n";
68 59
69 60 return $headers;