mail plugin: use system from address
This commit is contained in:
parent
0d703c73bd
commit
6d194d8541
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue