• Resolved cpt1965

    (@cpt1965)


    Hi,

    I am working on a website for one of my local clubs and have used WP Mail SMTP. All is setup and working really well and I’m very pleased with the functionality. I was developing on a Windows PC however I have just bought a MacBook Pro. I have transferred the WordPress site over and everything else on the website is working fine except that your plugin is failing with a message:

    EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v2.4.0 logged this error during the last time it tried to send an email:
    Mailer: Other SMTP SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Consider running an email test after fixing it.

    The settings are all identical to the windows pc but I can’t see why it doesn’t work. I have setup and email account on the apple mail app and it works fine, so this seems to just be a plugin issue. Please help as I am no Mac OS expert.

    • This topic was modified 4 years, 1 month ago by cpt1965. Reason: Typo
Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter cpt1965

    (@cpt1965)

    .

    • This reply was modified 4 years, 1 month ago by cpt1965.

    Hi @cpt1965,

    Please share a full error log recorded when you send a test email from WP Mail SMTP > Email Test? Here’s a screenshot for the option to get a full error log. This will give us an idea of what might be going on.

    Thanks!

    Thread Starter cpt1965

    (@cpt1965)

    Hi, Thanks for your reply. I cannot get the error log because as I am still evaluating I have not got pro. Is there a file stored somewhere with the error log in it.
    Thanks

    @cpt1965
    siteground server?

    if so, the problem is theirs

    Thread Starter cpt1965

    (@cpt1965)

    No, not site ground. It works on windows but not on Macbook pro

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @cpt1965,

    are you talking about local development environments?

    So it worked for you when using Windows local WP site and it does not work for you when you are using a local WP site on your Macbook pro?

    If so, there might be some server differences that are causing the issue.

    Please send a test email as Sanjeev suggested. When the error displays below the test email form, please click on the “Click here to view the full Error Log for debugging”. Check the screenshot Sanjeev posted above.

    Copy and paste the error log here and we’ll know more about what is causing issues for your WP site hosted locally on your Macbook pro.

    Take care!

    Thread Starter cpt1965

    (@cpt1965)

    Click here to view the full Error Log for debugging

    Versions:
    WordPress: 5.5.1
    WordPress MS: No
    PHP: 7.3.5
    WP Mail SMTP: 2.4.0

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Host: smtp.stackmail.com
    Port: 465
    SMTPSecure: ssl
    SMTPAutoTLS:
    /Users/peterbambrook/Local Sites/dys/app/public/wp-content/plugins/wp-mail-smtp/src/Debug.php:111:boolean true

    SMTPAuth:
    /Users/peterbambrook/Local Sites/dys/app/public/wp-content/plugins/wp-mail-smtp/src/Debug.php:111:boolean true

    Server:
    OpenSSL: OpenSSL 1.1.1g 21 Apr 2020

    Debug:
    Mailer: Other SMTP SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    SMTP Debug:
    2020-10-23 13:32:58 Connection: opening to ssl://smtp.stackmail.com:465, timeout=300, options=array()
    2020-10-23 13:32:58 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [/Users/peterbambrook/Local Sites/dys/app/public/wp-includes/PHPMailer/SMTP.php line 344]
    2020-10-23 13:32:58 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/Users/peterbambrook/Local Sites/dys/app/public/wp-includes/PHPMailer/SMTP.php line 344]
    2020-10-23 13:32:58 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.stackmail.com:465 (Unknown error) [/Users/peterbambrook/Local Sites/dys/app/public/wp-includes/PHPMailer/SMTP.php line 344]
    2020-10-23 13:32:58 SMTP ERROR: Failed to connect to server: (0)
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    Please copy only the content of the error debug message above, identified with an orange left border, into the support forum topic if you experience any issues.

    Thread Starter cpt1965

    (@cpt1965)

    I can confirm that the settings work on a windows PC. All I did was copy the WP folders to a macbook, export then import the database and everything else works except this.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @cpt1965,

    as you can see, this is the cause of your issue:
    > tls_process_server_certificate:certificate verify failed

    > Connection failed. Error #2: stream_socket_client(): Failed to enable crypto

    Please look at these possible solutions for your problem: https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#certificate-verification-failure

    (In the “Certificate verification failure” section)

    Let me know how it goes.

    Have a nice day!

    Thread Starter cpt1965

    (@cpt1965)

    Hi I have managed to get it to work by changed the php server on the Mac from Local by Flywheel which uses nginx to MAMP and used apache.

    There must be a parameter in the nginx (or Local by Flywheel) which was stopping the certificate. There was something in Local by flywheel called Mailhog which could’ve been intercepting the mail and blocking it, but as I wasn’t happy with that package anyway I have just changed without investigating further.

    So all is well and thanks for your help everyone.

    Pete

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi Pete,

    I’m glad you found a solution to your issue. ??

    Have a nice day!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Not working on MacBook’ is closed to new replies.