Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Getting the error "SMTP Error: Could not connect to SMTP host"

    This error just STARTED happening suddenly. It does not occur when customer places orders, or when using the contact us form. This ONLY occurs when updating orders in the admin and sending out the order status updates. Not even sure where to begin to troubleshoot this..

    Some info:
    PHP Version: 5.4.38

    Email settings:
    E-Mail Transport Method: SMTPAUTH

    E-Mail Linefeeds
    Current Value: LF

    Use MIME HTML When Sending Emails
    Current Value: true

    Email Archiving Active?
    Current Value: true

    E-Mail Friendly-Errors
    Current Value: true

    Emails must send from known domain?
    Current Value: Yes


    Last edited by DivaVocals; 3 Aug 2016 at 02:50 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #2
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Getting the error "SMTP Error: Could not connect to SMTP host"

    So I talking to myself here.. Still hoping to get some insight as to how to resolve this.. I switched the SMTP credentials to use Mailgun for SMTP authentication. This yields the SAME result.. Store-side emails go out just fine (Contact Us form, order confirmation emails) But ANY emails send from the admin (order confirmations in particular) leads to the following SMTP error.

    ERROR: Failed sending email to: "Jessica Rabbit" with subject: "Order Update #84755" SMTP Error: The following recipients failed: ###### @ hotmail.com
    Let me repeat.. Order confirmations are going out just fine. The contact us form works fine. But order status updates are not sending emails and the above error is what I get.


    .
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,403
    Plugin Contributions
    87

    Default Re: Getting the error "SMTP Error: Could not connect to SMTP host"

    Was the site's PHP version recently changed?

    Does the site use Edit Orders? If so, does the same behavior (error sending email) occur whether you change the order's status using the "normal" orders handling and when you change the status using Edit Orders?

    Does the same email error occur when you use the Tools->Send Email page?

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Getting the error "SMTP Error: Could not connect to SMTP host"

    Quote Originally Posted by lat9 View Post
    Was the site's PHP version recently changed?

    Does the site use Edit Orders? If so, does the same behavior (error sending email) occur whether you change the order's status using the "normal" orders handling and when you change the status using Edit Orders?

    Does the same email error occur when you use the Tools->Send Email page?
    To my knowledge, the PHP version did not recently change, but i will have to check with the hosting company..

    The site uses Edit Orders, but he rarely uses the module for order editing these days.. This behavior happens using the normal order handling.. yes same issue when using Tools->Send Email page.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,403
    Plugin Contributions
    87

    Default Re: Getting the error "SMTP Error: Could not connect to SMTP host"

    A shot in the dark, but have you recently checked the site's security protocols (like with https://www.ssllabs.com/ssltest/index.html)? For that matter, is the admin running in SSL-mode?

    I'm having a hard time explaining to myself that the storefront sends emails just fine, but that there are issues in the admin since both parts of the site use the same email settings and modules.

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Getting the error "SMTP Error: Could not connect to SMTP host"

    Quote Originally Posted by DivaVocals View Post
    But ANY emails send from the admin (order confirmations in particular) leads to the following SMTP error.
    The following recipients failed: ###### @ hotmail.com
    Clutching at straws, but do you have the same problem sending these emails to clients that are not using hotmail?

    Perhaps hotmail has some security settings that are being triggered with these particular emails?

    Cheers
    RodG

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,669
    Plugin Contributions
    9

    Default Re: Getting the error "SMTP Error: Could not connect to SMTP host"

    on the admin side, there is a script called:

    mail.php

    have you tried using that script as a test to see if you can email anything from the admin side?

    have you verified (as rod suggested) that it's happening for all domains? or only some select domains?

    good luck!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Getting the error "SMTP Error: Could not connect to SMTP host"

    Quote Originally Posted by carlwhat View Post
    on the admin side, there is a script called:

    mail.php

    have you tried using that script as a test to see if you can email anything from the admin side?

    have you verified (as rod suggested) that it's happening for all domains? or only some select domains?

    good luck!
    That /admin/mail.php file is the same "Tools->Send Email page" thing discussed earlier.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Getting the error "SMTP Error: Could not connect to SMTP host"

    Quote Originally Posted by DivaVocals View Post
    ERROR: Failed sending email to: "Jessica Rabbit" with subject: "Order Update #84755" SMTP Error: The following recipients failed: ###### @ hotmail.com
    Let me repeat.. Order confirmations are going out just fine. The contact us form works fine. But order status updates are not sending emails and the above error is what I get.
    The error you quoted shows as being the one sent to the customer. But the Admin for order-updates also immediately sends an email to the storeowner too (immediately after sending one to the customer). Does that one arrive properly? (Or have you turned that feature off?)

    It's definitely peculiar (and very hard to explain why) that only the admin-side is failing, considering that both the admin and non-admin use the exact same infrastructure for sending emails.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 30 May 2013, 05:57 PM
  2. Replies: 4
    Last Post: 18 Aug 2010, 11:46 AM
  3. Replies: 2
    Last Post: 20 Jul 2010, 04:40 PM
  4. Replies: 7
    Last Post: 8 Feb 2010, 01:14 PM
  5. Getting error <Email Error: SMTP Error: Could not connect to SMTP host.>
    By renishm in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 11 Apr 2009, 04:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR