File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lib/internal/Magento/Framework/Mail Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,19 @@ public function __construct(
82
82
if (count ($ to ) < 1 ) {
83
83
throw new MailException (__ ('Email message must have at list one addressee ' ));
84
84
}
85
- if ($ sender ) {
85
+ if ($ to ) {
86
86
$ this ->message ->setTo ($ this ->convertAddressArrayToAddressList ($ to ));
87
87
}
88
- if ($ sender ) {
88
+ if ($ replyTo ) {
89
89
$ this ->message ->setReplyTo ($ this ->convertAddressArrayToAddressList ($ replyTo ));
90
90
}
91
- if ($ sender ) {
92
- $ this ->message ->setFrom ($ this ->convertAddressArrayToAddressList ($ from ));
91
+ if ($ replyTo ) {
92
+ $ this ->message ->setFrom ($ this ->convertAddressArrayToAddressList ($ replyTo ));
93
93
}
94
- if ($ sender ) {
94
+ if ($ cc ) {
95
95
$ this ->message ->setCc ($ this ->convertAddressArrayToAddressList ($ cc ));
96
96
}
97
- if ($ sender ) {
97
+ if ($ bcc ) {
98
98
$ this ->message ->setBcc ($ this ->convertAddressArrayToAddressList ($ bcc ));
99
99
}
100
100
$ this ->mimeMessageFactory = $ mimeMessageFactory ;
You can’t perform that action at this time.
0 commit comments