diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-16 15:55:39 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-04-16 19:00:05 +0200 |
commit | 9ee1febf629fa4180c483fb4a2c82559f5c50392 (patch) | |
tree | fc9723ef0eba3b5dad8830cd725169231a35292d /lib/private/Mail/Mailer.php | |
parent | 056660bf7ce0e587be7276e640e424280ff66804 (diff) | |
download | nextcloud-server-9ee1febf629fa4180c483fb4a2c82559f5c50392.tar.gz nextcloud-server-9ee1febf629fa4180c483fb4a2c82559f5c50392.zip |
Provide an option to disable HTML emails
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Mail/Mailer.php')
-rw-r--r-- | lib/private/Mail/Mailer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php index d55546769ee..001f7bd75c9 100644 --- a/lib/private/Mail/Mailer.php +++ b/lib/private/Mail/Mailer.php @@ -93,7 +93,8 @@ class Mailer implements IMailer { * @return IMessage */ public function createMessage(): IMessage { - return new Message(new \Swift_Message()); + $plainTextOnly = $this->config->getSystemValue('mail_send_plaintext_only', false); + return new Message(new \Swift_Message(), $plainTextOnly); } /** |