From 62a42e4306239cc68095e200b4e7d22f7e48a31b Mon Sep 17 00:00:00 2001 From: Yoan Mollard Date: Fri, 18 Oct 2024 02:13:20 +0200 Subject: [PATCH] Allow to set ReplyTo header in e-mailings --- htdocs/comm/mailing/card.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/mailing/card.php b/htdocs/comm/mailing/card.php index cc46110e17c9d..e38175127886e 100644 --- a/htdocs/comm/mailing/card.php +++ b/htdocs/comm/mailing/card.php @@ -531,7 +531,7 @@ $trackid = 'emailing-test'; $upload_dir_tmp = $upload_dir; - $mailfile = new CMailFile($tmpsujet, $object->sendto, $object->email_from, $tmpbody, $arr_file, $arr_mime, $arr_name, '', '', 0, $msgishtml, $object->email_errorsto, $arr_css, $trackid, '', 'emailing', '', $upload_dir_tmp); + $mailfile = new CMailFile($tmpsujet, $object->sendto, $object->email_from, $tmpbody, $arr_file, $arr_mime, $arr_name, '', '', 0, $msgishtml, $object->email_errorsto, $arr_css, $trackid, '', 'emailing', $object->email_replyto, $upload_dir_tmp); $result = $mailfile->sendfile(); if ($result) { @@ -833,6 +833,8 @@ print ''.$langs->trans("MailErrorsTo").''; + print ''.$langs->trans("MailReply").''; + // Other attributes $parameters = array(); $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook @@ -1377,6 +1379,7 @@ // To if ($object->messtype != 'sms') { print ''.$langs->trans("MailErrorsTo").''.dol_print_email($object->email_errorsto, 0, 0, 0, 0, 1).''; + print ''.$langs->trans("MailReply").''.dol_print_email($object->email_replyto, 0, 0, 0, 0, 1).''; } print '';