Phpmailer Debug

Phpmailer smtp debug
  1. Phpmailer Debug Level
  2. Phpmailer Example
ExamplePhpmailer enable 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

  • 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 .
  • The topic ‘WP Mail SMTP error (URGENT)’ is closed to new replies.

Phpmailer Debug Level

PhpmailerPhp phpmailer

Phpmailer Example

Debugging and Abracadabra! I’ll write more about PHPMailer and PrestaShop later, In my next post, learn how to correctly include inline images in PHPMailer email to display in GMAIL, YAHOO, Mac Mail app and other email clients correctly as inline images. Generate debug output for mail, sendmail, and qmail transports. Enable using the same mechanism as for SMTP: set SMTPDebug 0 Make the mail and sendmail transports set the envelope sender the same way as SMTP does, i.e. Use whatever From is set to, only falling back to the sendmailfrom php.ini setting if From is unset. PHPMailerPHPMailer PHPMailerPHPMailerPOP3. PHPMailer POP-Before-SMTP Authentication Class. Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 1) This class does not support APOP authentication. We would like to show you a description here but the site won’t allow us. PHP PHPMailer::Send - 30 examples found. These are the top rated real world PHP examples of PHPMailer::Send extracted from open source projects. You can rate examples to help us improve the quality of examples.