From c7fa8147d8f7485ce053b9929fdbd20cf6b8c89f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 1 Jun 2008 16:31:51 +0000 Subject: [PATCH] Test of sending email can change sender --- htdocs/admin/mails.php | 1 + htdocs/html.formmail.class.php | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index 58f1dcff7c5..0457f626638 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -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; diff --git a/htdocs/html.formmail.class.php b/htdocs/html.formmail.class.php index aa8ec32665c..5900c801539 100644 --- a/htdocs/html.formmail.class.php +++ b/htdocs/html.formmail.class.php @@ -214,6 +214,14 @@ class FormMail print "\n"; print "\n"; } + else + { + print "".$langs->trans("MailFrom").""; + print $langs->trans("Name").':'; + print '    '; + print $langs->trans("EMail").':<>'; + print "\n"; + } } // Replyto