summaryrefslogtreecommitdiff
path: root/classes/mailer.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/mailer.php')
-rw-r--r--classes/mailer.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/classes/mailer.php b/classes/mailer.php
index dcb22e6d6..a15c8546b 100644
--- a/classes/mailer.php
+++ b/classes/mailer.php
@@ -47,12 +47,11 @@ 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)));