]> git.wh0rd.org Git - tt-rss.git/commitdiff
mail plugin: use system from address
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 6 Aug 2014 05:36:55 +0000 (09:36 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 6 Aug 2014 05:36:55 +0000 (09:36 +0400)
plugins/mail/init.php

index 12e591c54b8f11657039988bea23cb73a4c2a705..21b58d73721b298c27d368705e1d62e10d9e98c1 100644 (file)
@@ -135,15 +135,6 @@ class Mail extends Plugin {
 
                print "<table width='100%'><tr><td>";
 
-               print __('From:');
-
-               print "</td><td>";
-
-               print "<input dojoType=\"dijit.form.TextBox\" disabled=\"1\" style=\"width : 30em;\"
-                               value=\"$user_name <$user_email>\">";
-
-               print "</td></tr><tr><td>";
-
                $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)