mail plugin: use system from address
This commit is contained in:
parent
0d703c73bd
commit
6d194d8541
1 changed files with 1 additions and 11 deletions
|
@ -135,15 +135,6 @@ class Mail extends Plugin {
|
||||||
|
|
||||||
print "<table width='100%'><tr><td>";
|
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"));
|
$addresslist = explode(",", $this->host->get($this, "addresslist"));
|
||||||
|
|
||||||
print __('To:');
|
print __('To:');
|
||||||
|
@ -191,8 +182,7 @@ class Mail extends Plugin {
|
||||||
|
|
||||||
$mail = new ttrssMailer();
|
$mail = new ttrssMailer();
|
||||||
|
|
||||||
$mail->From = strip_tags($_REQUEST['from_email']);
|
$mail->AddReplyTo(strip_tags($_REQUEST['from_email'], $_REQUEST['from_name']));
|
||||||
$mail->FromName = strip_tags($_REQUEST['from_name']);
|
|
||||||
//$mail->AddAddress($_REQUEST['destination']);
|
//$mail->AddAddress($_REQUEST['destination']);
|
||||||
$addresses = explode(';', $_REQUEST['destination']);
|
$addresses = explode(';', $_REQUEST['destination']);
|
||||||
foreach($addresses as $nextaddr)
|
foreach($addresses as $nextaddr)
|
||||||
|
|
Loading…
Reference in a new issue