summaryrefslogtreecommitdiff
path: root/classes/mailer.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-06-06 21:05:15 +0300
committerAndrew Dolgov <[email protected]>2022-06-06 21:05:15 +0300
commit8151295829e0e7cb575e6ed676fe3568a29d86eb (patch)
tree0e47eb07dff6b64d4818977c2e1a609fe3e9e528 /classes/mailer.php
parent8ef816d8f8ee964d5ce54e28e1f2686caf9176fd (diff)
Revert "trivia: coding style"
This reverts commit 9e557501fae6f67f4dbd5cc121e1f45e5211c9a7.
Diffstat (limited to 'classes/mailer.php')
-rw-r--r--classes/mailer.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/classes/mailer.php b/classes/mailer.php
index a15c8546b..dcb22e6d6 100644
--- a/classes/mailer.php
+++ b/classes/mailer.php
@@ -47,11 +47,12 @@ class Mailer {
$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";
+ 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";
}
$rc = mail($to_combined, $subject, $message, implode("\r\n", array_merge($headers, $additional_headers)));