Phpmailer Debug

PhpmailerPhpmailerPhpmailer Debug

Phpmailer Debug Level

  • Hello everyone, we have a problem with WP Mail SMTP not being able to send mails.

    Environment setup:

    We are running on PHP 7.3
    Our WordPress instance is actually an Amazon BeansTalk application with load balancer architecture that runs on Amazon Linux 2
    SMTP Service : We are using Google SMTP
    SMTP Plugin : WP Mail SMTP
    Debug when sending a mail via the test mail function of the plugin :

    Versions:
    WordPress: 5.4.1
    WordPress MS: No
    PHP: 7.3.16
    WP Mail SMTP: 2.1.1

    Params:
    Mailer: gmail
    Constants: No
    Client ID/Secret: Yes
    Auth Code: Yes
    Access Token: Yes

    Server:
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
    PHP.allow_url_fopen: Yes
    PHP.stream_socket_client(): Yes
    PHP.fsockopen(): Yes
    PHP.curl_version(): 7.61.1

    PHPMailer Debug:
    Invalid address: (setFrom) [email protected]

    We have tried this solution :
    https://wordpress.org/support/topic/invalid-address-setfrom/

    But it gives us this error:

    Fatal error: Uncaught TypeError: Argument 1 passed to WPMailSMTPProvidersMailerAbstract::__construct() must be an instance of WPMailSMTPMailCatcher, instance of PHPMailer given, called in /var/app/current/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php on line 43 and defined in /var/app/current/wp-content/plugins/wp-mail-smtp/src/Providers/MailerAbstract.php:79 Stack trace: #0 /var/app/current/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php(43): WPMailSMTPProvidersMailerAbstract->__construct(Object(PHPMailer)) #1 /var/app/current/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php(193): WPMailSMTPProvidersGmailMailer->__construct(Object(PHPMailer)) #2 /var/app/current/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php(149): WPMailSMTPProvidersLoader->get_entity(‘gmail’, ‘Mailer’) #3 /var/app/current/wp-content/plugins/wp-mail-smtp/src/Admin/Review.php(107): WPMailSMTPProvidersLoader->get_mailer(‘gmail’, Object(PHPMailer)) #4 /var/app/current/wp-content/plugins/wp-mail-s in /var/app/current/wp-content/plugins/wp-mail-smtp/src/Providers/MailerAbstract.php on line 79

    Please we need help.. it’s urgent

How to debug SMTP problems in PHPMailer. If you experience some troubles when sending emails through an SMTP server, the SMTPDebug command will help you explore those errors and find out what should be fixed. Enable SMTP debugging and set the debug level in your script as follows. Then nothing there's really nothing to debug. This occurs because of a wried rule imposed by Godaddy on its user, where Godaddy has explicitly blocked the outgoing SMTP connection to ports 25, 587.

  • Hi @capuderg

    I m having exact same issue with WP SMTP after WP upgrade, please help. Below is the error log

    Versions:
    WordPress: 5.4.2
    WordPress MS: No
    PHP: 7.3.16
    WP Mail SMTP: 2.0.1

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP Error: Could not authenticate.
    Host: us2.smtp.mailhostbox.com
    Port: 587
    SMTPSecure: string(0) “”
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)

    Server:
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
    Apache.mod_security: No
    SMTP Debug:
    2020-06-12 22:07:25 Connection: opening to us2.smtp.mailhostbox.com:587, timeout=300, options=array ()

    2020-06-12 22:07:25 Connection: opened

    2020-06-12 22:07:25 SERVER -> CLIENT: 220 us2.outbound.mailhostbox.com ESMTP Postfix

    2020-06-12 22:07:25 CLIENT -> SERVER: EHLO http://www.exactprobi.org

    2020-06-12 22:07:25 SERVER -> CLIENT: 250-us2.outbound.mailhostbox.com250-PIPELINING250-SIZE 41648128250-VRFY250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN

    2020-06-12 22:07:25 CLIENT -> SERVER: STARTTLS

    2020-06-12 22:07:25 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS

    2020-06-12 22:07:26 CLIENT -> SERVER: EHLO http://www.exactprobi.org

    2020-06-12 22:07:26 SERVER -> CLIENT: 250-us2.outbound.mailhostbox.com250-PIPELINING250-SIZE 41648128250-VRFY250-ETRN250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN

    2020-06-12 22:07:26 CLIENT -> SERVER: AUTH LOGIN

    2020-06-12 22:07:26 SERVER -> CLIENT: 334 VXNlcm5hbWU6

    2020-06-12 22:07:26 CLIENT -> SERVER: cHJhc2hhbnRAZXhhY3Rwcm9iaS5vcmc=

    2020-06-12 22:07:26 SERVER -> CLIENT: 334 UGFzc3dvcmQ6

    2020-06-12 22:07:26 CLIENT -> SERVER: UHJAc2hFeEBjdFByMEJpOTkwMA

    2020-06-12 22:07:28 SERVER -> CLIENT: 535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6

    2020-06-12 22:07:28 SMTP ERROR: Password command failed: 535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6

    SMTP Error: Could not authenticate.

    2020-06-12 22:07:28 CLIENT -> SERVER: QUIT

    2020-06-12 22:07:28 SERVER -> CLIENT: 221 2.0.0 Bye

    2020-06-12 22:07:28 Connection: closed

    SMTP Error: Could not authenticate.

    • This reply was modified 10 months, 3 weeks ago by .

Phpmailer Debug Output

  • The topic ‘WP Mail SMTP error (URGENT)’ is closed to new replies.