From: Andrew Dolgov Date: Tue, 16 Apr 2013 12:36:05 +0000 (+0400) Subject: mail plugin: fix blank From: header X-Git-Tag: 1.7.9~25^2~205 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ea4e11032a649596ab10006a384189445754a226;p=tt-rss.git mail plugin: fix blank From: header --- diff --git a/plugins/mail/init.php b/plugins/mail/init.php index 40da8720..574dc1ef 100644 --- a/plugins/mail/init.php +++ b/plugins/mail/init.php @@ -44,8 +44,8 @@ class Mail extends Plugin { if (!$user_name) $user_name = $_SESSION['name']; - $_SESSION['email_replyto'] = $user_email; - $_SESSION['email_fromname'] = $user_name; + print ""; + print ""; require_once "lib/MiniTemplator.class.php"; @@ -134,15 +134,10 @@ class Mail extends Plugin { $reply = array(); - $_SESSION['email_secretkey'] = ''; - - $replyto = strip_tags($_SESSION['email_replyto']); - $fromname = strip_tags($_SESSION['email_fromname']); - $mail = new ttrssMailer(); - $mail->From = $replyto; - $mail->FromName = $fromname; + $mail->From = strip_tags($_REQUEST['from_email']); + $mail->FromName = strip_tags($_REQUEST['from_name']); $mail->AddAddress($_REQUEST['destination']); $mail->IsHTML(false);