Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-13136

[EZ4.0.0] add reply-to support in collectinformation.php

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.0.0
    • Notifications
    • 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 ) )
      <

      { < $replyto = $sender ; < }

      300c295
      < $mail->setReplyTo( $replyto );

      > $mail->setReplyTo( $sender );

      Attachments

        Activity

          People

            unknown unknown
            spoutnik spoutnik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: