From c1928861172dcef8a33bc4a5e918b83b879f6e96 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 19 Mar 2020 19:33:40 +0100 Subject: [PATCH] phpMailer --- lam/docs/manual-sources/style.css | 6 ++++-- lam/lib/account.inc | 34 ------------------------------- lam/templates/config/confmain.php | 2 +- 3 files changed, 5 insertions(+), 37 deletions(-) diff --git a/lam/docs/manual-sources/style.css b/lam/docs/manual-sources/style.css index 607c7d93..b593c8fa 100755 --- a/lam/docs/manual-sources/style.css +++ b/lam/docs/manual-sources/style.css @@ -2,7 +2,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2009 - 2016 Roland Gruber + Copyright (C) 2009 - 2020 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -109,4 +109,6 @@ pre.programlisting { background-color:#f3f2f1; } - +img { + max-width: 100%; +} diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 786ada2d..50fe9593 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -1297,40 +1297,6 @@ function sendPasswordMail($pwd, $user, $recipient = null) { } } -/** - * Generates the email header text for the given parameters. - * - * @param String $from FROM address - * @param boolean $isHTML mail is formatted as HTML or plain text - * @param String $replyTo reply-to address (optional) - * @param String $cc CC address - * @param String $bcc BCC address - * @return String header lines - */ -function createEMailHeaders($from, $isHTML, $replyTo = null, $cc = null, $bcc = null) { - $headerLines = ""; - if (!empty($from)) { - $headerLines .= 'From: ' . encodeMailAddress($from) . "\r\n"; - } - if (!empty($replyTo)) { - $headerLines .= 'Reply-To: ' . encodeMailAddress($replyTo) . "\r\n"; - } - if (!empty($cc)) { - $headerLines .= 'Cc: ' . encodeMailAddress($cc) . "\r\n"; - } - if (!empty($bcc)) { - $headerLines .= 'Bcc: ' . encodeMailAddress($bcc) . "\r\n"; - } - $headerLines .= "MIME-Version: 1.0\r\n"; - if ($isHTML) { - $headerLines .= "Content-type: text/html; charset=UTF-8\r\n"; - } - else { - $headerLines .= "Content-type: text/plain; charset=UTF-8\r\n"; - } - return $headerLines; -} - /** * Sends out an email. * diff --git a/lam/templates/config/confmain.php b/lam/templates/config/confmain.php index ec4d79ae..65025b65 100644 --- a/lam/templates/config/confmain.php +++ b/lam/templates/config/confmain.php @@ -354,7 +354,7 @@ if (isLAMProVersion()) { // mail settings $row->add(new htmlSubTitle(_("Password mail settings"), '../../graphics/mailBig.png', null, true), 12); - $pwdMailFrom = new htmlResponsiveInputField(_('From address'), 'pwdResetMail_from', $conf->getLamProMailFrom(), '550'); + $pwdMailFrom = new htmlResponsiveInputField(_('From address'), 'pwdResetMail_from', $conf->getLamProMailFrom(), '550', true); $row->add($pwdMailFrom, 12); $pwdMailReplyTo = new htmlResponsiveInputField(_('Reply-to address'), 'pwdResetMail_replyTo', $conf->getLamProMailReplyTo(), '554');