summaryrefslogtreecommitdiff
path: root/plugins/mail/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-16 16:36:05 +0400
committerAndrew Dolgov <[email protected]>2013-04-16 16:36:05 +0400
commitea4e11032a649596ab10006a384189445754a226 (patch)
tree981886196910d7bc86481eaafa25c0045ed3fd17 /plugins/mail/init.php
parent40fe2d73821788e7c202191dc7b94b025585d338 (diff)
mail plugin: fix blank From: header
Diffstat (limited to 'plugins/mail/init.php')
-rw-r--r--plugins/mail/init.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/plugins/mail/init.php b/plugins/mail/init.php
index 40da8720c..574dc1ef3 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 "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"from_email\" value=\"$user_email\">";
+ print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"from_name\" value=\"$user_name\">";
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);