Test of sending email can change sender
This commit is contained in:
parent
844339c48f
commit
c7fa8147d8
@ -275,6 +275,7 @@ else
|
||||
$formmail = new FormMail($db);
|
||||
$formmail->fromname = $conf->global->MAIN_MAIL_EMAIL_FROM;
|
||||
$formmail->frommail = $conf->global->MAIN_MAIL_EMAIL_FROM;
|
||||
$formmail->withfromreadonly=0;
|
||||
$formmail->withsubstit=0;
|
||||
$formmail->withfrom=1;
|
||||
$formmail->witherrorsto=1;
|
||||
|
||||
@ -214,6 +214,14 @@ class FormMail
|
||||
print "</td></tr>\n";
|
||||
print "</td></tr>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<tr><td>".$langs->trans("MailFrom")."</td><td>";
|
||||
print $langs->trans("Name").':<input type="text" name="fromname" size="32" value="'.$this->fromname.'">';
|
||||
print ' ';
|
||||
print $langs->trans("EMail").':<<input type="text" name="frommail" size="32" value="'.$this->frommail.'">>';
|
||||
print "</td></tr>\n";
|
||||
}
|
||||
}
|
||||
|
||||
// Replyto
|
||||
|
||||
Loading…
Reference in New Issue
Block a user