From: Andrew Dolgov Date: Wed, 6 Aug 2014 05:36:55 +0000 (+0400) Subject: mail plugin: use system from address X-Git-Tag: 1.14~46 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6d194d85415dee671c0afa2e734292743920f1a2;p=tt-rss.git mail plugin: use system from address --- 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)