• Resolved djbo

    (@djbo)


    I am configuring the Other SMTP mailer and test email fails to send. The log indicates it is trying to use localhost as the host, and port 25, ignoring the host and port I set, smtp.office365.com, port 587.

    Versions:
    WordPress: 5.8.3
    WordPress MS: No
    PHP: 7.4.28
    WP Mail SMTP: 3.3.0
    
    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo:
    Host: localhost
    Port: 25
    SMTPSecure: string(0) ""
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(false)
    
    Server:
    OpenSSL: OpenSSL 1.1.1d 10 Sep 2019
    Apache.mod_security: No
    SMTP Debug:
    [empty]

    I have tested sending mail successfully with PowerShell, so I know the host, port, and username/password are working.
    Send-MailMessage -From <sender> -To <recipient> -Subject “Test Email” -Body “Test SMTP” -SmtpServer smtp.office365.com -Credential <sender credentials> -UseSsl -Port 587

Viewing 1 replies (of 1 total)
  • Thread Starter djbo

    (@djbo)

    Found the issue. Somehow wp-config.php has the line “function wp_mail()”. After removing this, everything started working.

Viewing 1 replies (of 1 total)

The topic ‘WPMail doesn’t use configured SMTP host’ is closed to new replies.