From 10eab7014f9c8ee49d66de8ed936cf9cef888f20 Mon Sep 17 00:00:00 2001 From: fisharebest Date: Thu, 8 Dec 2011 20:36:46 +0000 Subject: #899773 - Admin mail config help messages wrong Remove "simple mail headers" option. --- includes/functions/functions_mail.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'includes/functions/functions_mail.php') diff --git a/includes/functions/functions_mail.php b/includes/functions/functions_mail.php index ac4717d5b2..b92d64e7b8 100644 --- a/includes/functions/functions_mail.php +++ b/includes/functions/functions_mail.php @@ -139,14 +139,12 @@ function webtreesMail($to, $from, $subject, $message) { $mail_object->SMTPSecure = 'tls'; } $from_name = ''; - if (!get_site_setting('SMTP_SIMPLE_MAIL')) { - preg_match('/<(.*)>/', $to, $matches); - if (isset($matches[1])) $to = $matches[1]; - preg_match('/<(.*)>/', $from, $matches); - if (isset($matches[1])) { - if (($pos = strpos($from, '<')) !== false) $from_name = substr($from, 0, $pos); - $from = $matches[1]; - } + preg_match('/<(.*)>/', $to, $matches); + if (isset($matches[1])) $to = $matches[1]; + preg_match('/<(.*)>/', $from, $matches); + if (isset($matches[1])) { + if (($pos = strpos($from, '<')) !== false) $from_name = substr($from, 0, $pos); + $from = $matches[1]; } $mail_object->SetFrom($from, $from_name); if ((!empty($SMTP_FROM_NAME) && $from!=$SMTP_AUTH_USER) || !empty($from_name)) { -- cgit v1.3