Add 'name' to the contact form's `Reply-To` Mailbox
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 18 Feb 2021 10:14:57 +0000 (11:14 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 18 Feb 2021 10:14:57 +0000 (11:14 +0100)
wcfsetup/install/files/lib/data/contact/option/ContactOptionAction.class.php

index 10562c2d7cf1cbde432d987f7734204f801ede0a..44f968173f27dcce7c1455cc18d322429ec4f5d9 100644 (file)
@@ -123,7 +123,7 @@ class ContactOptionAction extends CustomOptionAction implements ISortableAction
         ]));
 
         // add reply-to tag
-        $email->setReplyTo(new Mailbox($this->parameters['email']));
+        $email->setReplyTo(new Mailbox($this->parameters['email'], $this->parameters['name']));
 
         // send mail
         $email->send();