Phpmailer Debug

DebuggingPhpmailer debug off

Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research! Asking for help, clarification, or responding to other answers. There is a PHP function called streamselect that is required for PHPMailer to work correctly. But, like many PHP functions, this can be disabled within a php.ini file using the disabledfunctions option.

Phpmailer Debug
  • 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

Phpmailer Debug

  • 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

    Microsoft visual c++ 2012x64

    SMTP Error: Could not authenticate.

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

Phpmailer Example Code

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