We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1a537f + 03a1859 commit 4fb1b33Copy full SHA for 4fb1b33
app/code/Magento/SendFriend/Model/SendFriend.php
@@ -3,6 +3,8 @@
3
* Copyright © Magento, Inc. All rights reserved.
4
* See COPYING.txt for license details.
5
*/
6
+declare(strict_types=1);
7
+
8
namespace Magento\SendFriend\Model;
9
10
use Magento\Framework\Exception\LocalizedException as CoreException;
@@ -193,8 +195,11 @@ public function send()
193
195
'area' => \Magento\Framework\App\Area::AREA_FRONTEND,
194
196
'store' => $this->_storeManager->getStore()->getId(),
197
]
- )->setFrom(
- $sender
198
+ )->setFromByScope(
199
+ 'general'
200
+ )->setReplyTo(
201
+ $sender['email'],
202
+ $sender['name']
203
)->setTemplateVars(
204
[
205
'name' => $name,
0 commit comments