File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 8
8
/**
9
9
* Plugin for \Magento\Framework\Mail\TransportInterface
10
10
*/
11
- class WindowsSMTPConfig
11
+ class WindowsSmtpConfig
12
12
{
13
13
/**
14
14
* host config path
@@ -43,14 +43,15 @@ public function __construct(
43
43
}
44
44
45
45
/**
46
+ * To configure smtp settings for session right before sending message on windows server
47
+ *
46
48
* @param \Magento\Framework\Mail\TransportInterface $subject
47
49
* return void
48
- *
49
50
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
50
51
*/
51
52
public function beforeSendMessage (\Magento \Framework \Mail \TransportInterface $ subject )
52
53
{
53
- if (! $ this ->osInfo ->isWindows ()) {
54
+ if ($ this ->osInfo ->isWindows ()) {
54
55
ini_set ('SMTP ' , $ this ->config ->getValue (self ::XML_SMTP_HOST ));
55
56
ini_set ('smtp_port ' , $ this ->config ->getValue (self ::XML_SMTP_PORT ));
56
57
}
Original file line number Diff line number Diff line change 58
58
</arguments >
59
59
</type >
60
60
<type name =" Magento\Framework\Mail\TransportInterface" >
61
- <plugin name =" WindowsSMTPConfig " type =" Magento\Email\Model\Plugin\WindowsSMTPConfig " />
61
+ <plugin name =" WindowsSmtpConfig " type =" Magento\Email\Model\Plugin\WindowsSmtpConfig " />
62
62
</type >
63
63
</config >
You can’t perform that action at this time.
0 commit comments