File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Contact/Model Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ public function __construct(
49
49
*/
50
50
public function send ($ replyTo , array $ variables )
51
51
{
52
+ /** @see \Magento\Contact\Controller\Index\Post::validatedParams() */
53
+ $ replyToName = !empty ($ variables ['data ' ]['name ' ]) ? $ variables ['data ' ]['name ' ] : null ;
54
+
52
55
$ this ->inlineTranslation ->suspend ();
53
56
try {
54
57
$ transport = $ this ->transportBuilder
@@ -62,7 +65,7 @@ public function send($replyTo, array $variables)
62
65
->setTemplateVars ($ variables )
63
66
->setFrom ($ this ->contactsConfig ->emailSender ())
64
67
->addTo ($ this ->contactsConfig ->emailRecipient ())
65
- ->setReplyTo ($ replyTo )
68
+ ->setReplyTo ($ replyTo, $ replyToName )
66
69
->getTransport ();
67
70
68
71
$ transport ->sendMessage ();
You can’t perform that action at this time.
0 commit comments