You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config/smtp.md
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,4 +38,30 @@ or
38
38
bin/magento config:set system/smtp/transport smtp
39
39
bin/magento config:set system/smtp/host 127.0.0.1
40
40
bin/magento config:set system/smtp/port 1025
41
-
```
41
+
```
42
+
43
+
## WordPress
44
+
45
+
Save the following code to a file in the [mu-plugins](https://developer.wordpress.org/advanced-administration/plugins/mu-plugins/) directory (e.g. `smtp.php`):
46
+
47
+
```php
48
+
<?php
49
+
/**
50
+
* Plugin Name: MU Buggregator SMTP
51
+
*/
52
+
53
+
if (! defined('WP_ENVIRONMENT_TYPE') || 'local' !== WP_ENVIRONMENT_TYPE) {
54
+
return;
55
+
}
56
+
57
+
/**
58
+
* Send emails to Buggregator
59
+
*
60
+
* @param \PHPMailer $phpmailer The PHPMailer instance (passed by reference).
0 commit comments