mail plugin: use system from address

This commit is contained in:
Andrew Dolgov 2014-08-06 09:36:55 +04:00
parent 0d703c73bd
commit 6d194d8541
1 changed files with 1 additions and 11 deletions

View 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)