summaryrefslogtreecommitdiff
path: root/classes/mailer.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-06-06 21:05:24 +0300
committerAndrew Dolgov <[email protected]>2022-06-06 21:05:24 +0300
commit7cd26272fac706f6a0b1bbc8b12ca1a8d2c5a0d9 (patch)
tree41825d8786fbc7dabcb43e3a3a4baaa997d65eb4 /classes/mailer.php
parent8151295829e0e7cb575e6ed676fe3568a29d86eb (diff)
Revert "minor: Support html content in mailer.php"
This reverts commit b91ffae29217d441445ed3931987119d33b6fa20.
Diffstat (limited to 'classes/mailer.php')
-rw-r--r--classes/mailer.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/classes/mailer.php b/classes/mailer.php
index dcb22e6d6..60b1ce4fd 100644
--- a/classes/mailer.php
+++ b/classes/mailer.php
@@ -45,15 +45,7 @@ class Mailer {
++$hooks_tried;
}
- $headers = [ "From: $from_combined" ];
-
- if($message_html){
- $headers[]="MIME-Version: 1.0";
- $headers[]="Content-Type: text/html; charset=UTF-8";
- }
- else{
- $headers[]="Content-Type: text/plain; charset=UTF-8";
- }
+ $headers = [ "From: $from_combined", "Content-Type: text/plain; charset=UTF-8" ];
$rc = mail($to_combined, $subject, $message, implode("\r\n", array_merge($headers, $additional_headers)));