Create a key to copy examples filled with your team.
Send emails with WordPress
Point PHPMailer or an SMTP plugin at PostShiba.
WordPress sends through PHPMailer. Hook phpmailer_init, or paste the same fields into WP Mail SMTP or FluentSMTP. Port 587. STARTTLS. AUTH PLAIN. AUTH LOGIN fails. The From address must be a verified domain.
smtp.php
1
add_action("phpmailer_init", function ($phpmailer) {
2
$phpmailer->isSMTP();
3
$phpmailer->Host = "smtp.postshiba.com";
4
$phpmailer->Port = 587;
5
$phpmailer->SMTPSecure = "tls";
6
$phpmailer->SMTPAuth = true;
7
$phpmailer->AuthType = "PLAIN";
8
$phpmailer->Username = "smtp_9";
9
$phpmailer->Password = "YOUR_PASSWORD";
10
$phpmailer->From = "hello@mail.example.com";
11
});