Details
-
Improvement
-
Resolution: Obsolete
-
Medium
-
None
-
4.0.0
-
None
Description
I tried to add a "reply-to" header in mails form a "contact us" form.
Only "from" header is available, reply-to has the same value.
If "from" email set by user in contact form is unvalid, mail is not sent but user don't have any error message.
Set "reply-to" header with user mail and sender with EmailSender configuration value solve it.
I made some changes in kernel/content/collectinformation.php
277d276
< $replyto = $tpl->variable( 'email_replyto' );
295,298d293
< if ( !$mail->validate( $replyto ) )
<
300c295
< $mail->setReplyTo( $replyto );
—
> $mail->setReplyTo( $sender );