Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

SMTP Error: Could not connect to SMTP host. Rate Topic   - - - - -

 
  • RefinedAV
  • Junior Member
  • Members
  • Join Date: 01-Dec 09
  • 5 posts

Posted 02 December 2010 - 11:39 AM #1

I am having loads of trouble trying to get CS Cart to send emails.

If I use the SMTP setting I get the error in the title:

SMTP host: mail.uk2.net
SMTP username: main email address
SMTP password: xxxxxxxxx
Use SMTP authentication: no

These setting work in outlook

If I use the php mail I seems to work but no emails are sent

Any ideas as I'm sure the emails used to work.

http://www.refinedav...te-request.html

 
  • remoteone
  • Member
  • Members
  • Join Date: 06-Oct 09
  • 686 posts

Posted 27 March 2012 - 02:45 AM #2

This is an old post but very applicable to my issue, Could Moderator pls move it to the
"Version 2.x > Issues & Troubleshooting" Forum where it may get seen?

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10838 posts

Posted 29 March 2012 - 06:18 AM #3

Almost every smtp server will want authentication. Otherwise they are considered an open-relay and will be blacklisted immediately.
The user/password comes from your smtp host (or your smtp configuration if you are running a dedicated server). You need to work with whomever supports your smtp server so they can identify what errors are being generated by requests from your IP address.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • remoteone
  • Member
  • Members
  • Join Date: 06-Oct 09
  • 686 posts

Posted 01 April 2012 - 04:40 AM #4

That makes perfect sense, but how does mail client connect to the SMTP server without the client knowing what the outgoing server Port address is. For example, In my case:
Outgoing Mail Server: mail.blahblah.com.au (server requires authentication) port 2626
Outgoing Mail Server: (SSL) mail.blahblah.com.au (server requires authentication) port 465
I guess the cscart SMTP function must automatically get the port settings from the server.

Im no expert clearly, but given that the PHP mail function is problematic with spam filters, i need to get SMTP service working.

Interesting to note that the SMTP mail function works perfectly on my MAMP localhost dev machine, but on the live server I get:

SMTP Error: Could not connect to SMTP host.

So I think I have a problem with my hosting.

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10838 posts

Posted 01 April 2012 - 08:05 PM #5

Yes, cs-cart assumes standard ports (not valid in today's security world).
You might try specifying the port with colon syntax like smtp.foo.bar:2626

Standard ports for smtp are 587 and 25.
25 is rarely used anymore since it got so abused by spammers. But not sure how using a different port (and publishing it like 587) actually helps the initial problem....

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • remoteone
  • Member
  • Members
  • Join Date: 06-Oct 09
  • 686 posts

Posted 03 April 2012 - 04:02 PM #6

The SMTP mail function started working, coinciding with my steps to fix other Outgoing emails sent from (Thunderbird) email client.
My service provider suggested configuring "Email Authentication" enabling "DomainKeys" and setting up domains and IP addresses for "SPF" on my server.
This helps prevent outgoing emails from being tagged as spam by the recipient servers, but I have no idea how/why it seems to have fixed the cs-Cart SMTP mail function that just would not work at all.

However, I think the above is just a coincidence, as the SMTP mail function gave errors again today.
So I have set port with colon syntax like mail.blahblah.com.au:2626 which immediately had the SMTP working again. lets hope its not just a coincidence and keeps working.

 
  • percy
  • Member
  • Members
  • Join Date: 09-Apr 12
  • 15 posts

Posted 14 April 2012 - 07:15 PM #7

For people who are still facing the problem the following config worked for me:

method for sending email: Via SMTP Server
SMTP Host: localhost
the rest as you know (username with '@yourcompany.com' and password)
SMTP authentication: off

I didn't keep SMTP authentication on, as my service provider told me that all SMTP actions on their servers are already authenticated.

But a fact to be noted even though the software sends emails through SMTP, the emails land in the spam or junk folder of th receipient.

Don't no if there is any othe solution than asking customers to check spam or junk and marking email safe!

 
  • dotell
  • Junior Member
  • Trial users
  • Join Date: 21-Oct 09
  • 206 posts

Posted 07 May 2012 - 03:09 AM #8

Thanks! Works perfectly!

For people who are still facing the problem the following config worked for me:

method for sending email: Via SMTP Server
SMTP Host: localhost
the rest as you know (username with '@yourcompany.com' and password)
SMTP authentication: off

I didn't keep SMTP authentication on, as my service provider told me that all SMTP actions on their servers are already authenticated.

But a fact to be noted even though the software sends emails through SMTP, the emails land in the spam or junk folder of th receipient.

Don't no if there is any othe solution than asking customers to check spam or junk and marking email safe!



 

Posted 23 June 2012 - 10:02 AM #9

Hello everyone!

Yesterday we faced the same problem: after pushing the checkout button at the top of the page the string SMTP Error: Could not connect to SMTP host appeared.

Hosting recommended to change the method of sending from "By smtp server" to "By PHP mail function". All over configuration we left the same and everything start working.

SMTP host: smtp.gmail.com:465
SMTP username: info@labooks.ru
SMTP password: xxxxxxxxx
Use SMTP authentication: yes

 
  • joeleu
  • Newbie
  • Trial users
  • Join Date: 21-Aug 13
  • 7 posts

Posted 23 August 2013 - 07:17 AM #10

Hi, Every one, I'm also facing this problem.
I want to use this function to noticfy cutomer order status changed. But I tried a lot of accounts, it doesn't work.
I had chose Via SMTP Server.
For Php mail, it's work, but I don't want to use this, cause for it will be easily treat as Spam email. And also, my test email service notice me the emails send from this method will be security problems.
Anyone can help??

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10838 posts

Posted 23 August 2013 - 06:14 PM #11

What version?
SMTP works fine if you set it up correctly and the SMTP server you are sending to is setup to accept connections from you. Ensure you are using 'authentication' since most SMTP hosts will not accept open relay requests.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • joeleu
  • Newbie
  • Trial users
  • Join Date: 21-Aug 13
  • 7 posts

Posted 24 August 2013 - 01:37 AM #12

What version?
SMTP works fine if you set it up correctly and the SMTP server you are sending to is setup to accept connections from you. Ensure you are using 'authentication' since most SMTP hosts will not accept open relay requests.



 
  • joeleu
  • Newbie
  • Trial users
  • Join Date: 21-Aug 13
  • 7 posts

Posted 01 September 2013 - 10:48 AM #13

Hi, @tbirnseth,
My site version is new version download from CS Cart website last week. CS-Cart Ultimate.
Here are my settings and the results.

<embed src="https://app.box.com/embed/oxserqhb3n4y4od.swf" width="466" height="400" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">
<embed src="https://app.box.com/embed/ymp6uiww5x54p3n.swf" width="466" height="400" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">

<embed src="https://app.box.com/...750tfl7bid.swf" width="466" height="400" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">

<embed src="https://app.box.com/...wmmx72qsne.swf" width="466" height="400" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">

<embed src="https://app.box.com/...m52f3o6sjd.swf" width="466" height="400" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">

I had tried as my Gmail, setting as my email clients.
But this always said failed.
Can you help me?
Thanks for your help.

What version? SMTP works fine if you set it up correctly and the SMTP server you are sending to is setup to accept connections from you. Ensure you are using 'authentication' since most SMTP hosts will not accept open relay requests.



 
  • joeleu
  • Newbie
  • Trial users
  • Join Date: 21-Aug 13
  • 7 posts

Posted 01 September 2013 - 10:50 AM #14

<embed src="https://app.box.com/...qhb3n4y4od.swf" width="466" height="400" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">
<embed src="https://app.box.com/...iww5x54p3n.swf" width="466" height="400" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">
<embed src="https://app.box.com/...750tfl7bid.swf" width="466" height="400" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">
<embed src="https://app.box.com/...wmmx72qsne.swf" width="466" height="400" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">
<embed src="https://app.box.com/...m52f3o6sjd.swf" width="466" height="400" wmode="opaque" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always">


Hi, @tbirnseth, My site version is new version download from CS Cart website last week. CS-Cart Ultimate. Here are my settings and the results. I had tried as my Gmail, setting as my email clients. But this always said failed. Can you help me? Thanks for your help.



 
  • joeleu
  • Newbie
  • Trial users
  • Join Date: 21-Aug 13
  • 7 posts

Posted 01 September 2013 - 10:54 AM #15


Hi, @tbirnseth,
My site version is new version download from CS Cart website last week. CS-Cart Ultimate.
Here are my settings and the results. Please see the screen shots for my sit.
http://s.yunio.com/goK_dg

I had tried as my Gmail, setting as my email clients.
But this always said failed.
Can you help me?
Thanks for your help.




 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10838 posts

Posted 02 September 2013 - 08:58 PM #16

joeleu - No idea what you're trying to tell me sending a bunch of urls related to 'swf' files. I don't understand the releationship between your flash files and SMTP. You will have to verify that your smtp credentials do in fact work with whomever hosts your smtp services and that your site is allowed to relay mail using those credentials.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • joeleu
  • Newbie
  • Trial users
  • Join Date: 21-Aug 13
  • 7 posts

Posted 12 September 2013 - 03:12 PM #17

Hi, @tbirnseth,
Sorry for my mistake posting.
Here is what I'm want to say:
------------------------------------------------------------------------------------------------------------------
My site version is new version download from CS Cart website last week. CS-Cart Ultimate 4.0.1.
Here are my settings and the results. Please see the screen shots for my sit.
http://s.yunio.com/goK_dg

I had tried as my Gmail, setting as my email clients.
But this always said failed.
Can you help me?
Thanks for your help.
---------------------------------------------------------------------------------------------------------------------

joeleu - No idea what you're trying to tell me sending a bunch of urls related to 'swf' files. I don't understand the releationship between your flash files and SMTP. You will have to verify that your smtp credentials do in fact work with whomever hosts your smtp services and that your site is allowed to relay mail using those credentials.



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10838 posts

Posted 12 September 2013 - 06:27 PM #18

The last jpg that shows the errors pretty clearly indicates that the problem is that it can't connect to your smtp host.
That could be incorrect UR or bad user/pass. Or it could be that your smtp provider only allows specific IP addresses to connect.

Again, this is an issue with the SMTP provider and not with cs-cart.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • ovi.rivo
  • Newbie
  • Members
  • Join Date: 16-Mar 13
  • 2 posts

Posted 14 April 2014 - 07:45 AM #19

I also had problems with sending emails, both via PHP mail and SMTP.
I made a "Contact Us" form with Form Builder, and set it to send the email to my Yahoo address, but it was Not sending any email...
My solution was this:

a) Quick Fix (for php mail function)
-in CS-Cart: admin > Settings: Company > scroll down to "Help/Support department e-mail address:";
-I typed in an email address on my-domain, for eg: contact@my-domain.com or info@my-domain.com* etc.
(initially, all departments had the same Yahoo email address typed in)
*At first, I tested with a fictive email - fictive@my-domain.com - and worked. **Of course, "my-domain.com" was my REAL DOMAIN!


(The latest authentication test that Yahoo has incorporated, DMARC, performs the following checks:

  • "From" address should map to the same signing domain
  • Mail from a domain should match the domain in the "From" header
For details, see http://postmaster.ya...tmaster-28.html)



b)Complete Fix (for SMTP server)
-in cPanel > Email Accounts I created the email I wanted, for eg info@my-domain.com
(and added a Forwarder to my Yahoo Email - optional)
-in CS-Cart: admin > Settings: E-mail, I put these values*:

SMTP host: mail.my-domain.com:26 (Outgoing Server & port)

SMTP username: info@my-domain.com (the email account)

SMTP password: *** (Use the email account's password)

Use SMTP authentication: "yes"

*taken from cPanel > Email Accounts > Configure Email Client

I hope this will help someone. If anythnig wrong or unclear, please notify me. Thank you!
CS-Cart 4.1.5

 
  • lephonghau
  • Newbie
  • Trial users
  • Join Date: 16-Feb 17
  • 2 posts

Posted 26 April 2017 - 02:28 PM #20

For people who are still facing the problem the following config worked for me:

method for sending email: Via SMTP Server
SMTP Host: localhost
the rest as you know (username with '@yourcompany.com' and password)
SMTP authentication: off

I didn't keep SMTP authentication on, as my service provider told me that all SMTP actions on their servers are already authenticated.

But a fact to be noted even though the software sends emails through SMTP, the emails land in the spam or junk folder of th receipient.

Don't no if there is any othe solution than asking customers to check spam or junk and marking email safe!

Works perfectly! Thank you