From 6d194d85415dee671c0afa2e734292743920f1a2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 6 Aug 2014 09:36:55 +0400 Subject: [PATCH] mail plugin: use system from address --- plugins/mail/init.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/plugins/mail/init.php b/plugins/mail/init.php index 12e591c5..21b58d73 100644 --- a/plugins/mail/init.php +++ b/plugins/mail/init.php @@ -135,15 +135,6 @@ class Mail extends Plugin { print "
"; - print __('From:'); - - print ""; - - print "\">"; - - print "
"; - $addresslist = explode(",", $this->host->get($this, "addresslist")); print __('To:'); @@ -191,8 +182,7 @@ class Mail extends Plugin { $mail = new ttrssMailer(); - $mail->From = strip_tags($_REQUEST['from_email']); - $mail->FromName = strip_tags($_REQUEST['from_name']); + $mail->AddReplyTo(strip_tags($_REQUEST['from_email'], $_REQUEST['from_name'])); //$mail->AddAddress($_REQUEST['destination']); $addresses = explode(';', $_REQUEST['destination']); foreach($addresses as $nextaddr) -- 2.39.5