If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Windows Server / Could not connect to SMTP host.

Could not connect to SMTP host.

Locked

Started by wwwursa on 25 Oct 2007, 9:57 PM · Views: 26,592

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
25 Oct 2007, 9:57 PM
#1
wwwursa avatar

wwwursa

Zen Follower

Join Date:
Oct 2007
Posts:
163
Plugin Contributions:
0

Post #1 by wwwursa

I am installing Zen Cart for the fist time.
Am trying to pay through Paypal.
I get up to step 3 of three (order confirmation) and after pressing the Continue butto, receive the following message
Email Error: SMTP Error: Could not connect to SMTP host

have received an email from Paypal to my paypal account saying that payment has been received and naming me the the buyer.

I have also received an email from paypal to me, the buyer, telling me that I have paid the seller.

My email SMTP Email host in the Zen Cart Admin is [email protected] which is where my paypal account is located.

Not sure what email is not sent or why I am getting this error.

Thanks for any help you can give me.

25 Oct 2007, 10:28 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

I think that AOL is smtpauth and this is the mailing mode you should have selected and then enter the details in the other areas there

Zen-Venom Get Bitten

26 Oct 2007, 2:25 PM
#3
wwwursa avatar

wwwursa

Zen Follower

Join Date:
Oct 2007
Posts:
163
Plugin Contributions:
0

Post #3 by wwwursa

AOL is not my server. I am using HostMonster as the server. They say that smtp or smtpauth is OK.

26 Oct 2007, 2:58 PM
#4
wwwursa avatar

wwwursa

Zen Follower

Join Date:
Oct 2007
Posts:
163
Plugin Contributions:
0

Post #4 by wwwursa

I am confused as to what my SMTP Email Mail host name should be in the Zen Cart configuration > Email options area. Is mail server and mail host the same? They seem to be used interchangeably

My web server is hostMonster and the name of the domain is MarcellesBoutique. Should the Email Mail host name be mail.Marcellesboutique.com or mail.marcelle/marcellesboutique.com.

Just to confuse things even more, I receive email from paypal at Mebayebay@aol com for quite a long time.

What is my correct smtp Email host name?
Still wondering why the buyer gets the error message shown at the beginning of this thread.

26 Oct 2007, 4:04 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #5 by drbyte

wwwursa:

Email Error: SMTP Error: Could not connect to SMTP hostThat message means that when your store attempted to send an email using SMTP mode it couldn't find/reach/connect-to the mailserver specified as your SMTP mail host.

Yes, "mail host" and "mail server" are synonymous.

.
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.

6 Dec 2007, 6:06 AM
#6
robbyn7 avatar

robbyn7

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
0

Post #6 by robbyn7

Hi wwwursa,

Was your issued resolved? I too use Hostmonster. They have no idea how to resolve this issue. They said something must've happened after this upgrade because the emails aren't even making it to their server anymore.

I just upgraded to the latest version of Zencart. Everything worked fine before this. I've tried all transport methods but still I'm unable to send any emails. We even tried PHP and that didn't work. Just got off an hour call with my Host (hostmonster) and they checked everything to no avail. The emails aren't even reaching their logs. Yes, the emails are showing in the zencart archive but they're not making it to my host server. Is there a certain file besides functions_email.php that handles the functionality of emails? Just wondering if there's a file I can revert back to from the old version.

Here's an example of my error while using sendmail or php:
ERROR: Failed sending email to: "" with subject: "Please confirm xxxxxx newsletter subscription" Could not instantiate mail function.

Any help is appreciated.

Thanks,
Robyn

6 Dec 2007, 1:59 PM
#7
twistertires avatar

twistertires

New Zenner

Join Date:
Dec 2007
Posts:
7
Plugin Contributions:
0

Post #7 by twistertires

I am having trouble with the smtp host on 1.3.8 as well.

I set the debugging in the functions_email.php to 5, and this is the result I get. The url appears to be malformed, usually I would expect to see smtp://127.0.0.0.1 or something similar.

SMTP -> ERROR: Failed to connect to server ://127.0.0.1 25: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)

Email Error: SMTP Error: Could not connect to SMTP host.

My email settings are below, I'm running IIS6's smtp host with open relay and telneting to 127.0.0.1 25 will allow me to send a message. The email archive in zencart is empty as well.

E-Mail Transport Method smtp
SMTP Email Account Mailbox
SMTP Email Account Password
SMTP Email Mail Host 127.0.0.1
SMTP Email Mail Server Port 25

6 Dec 2007, 2:29 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #8 by drbyte

twistertires:

I am having trouble with the smtp host on 1.3.8 as well.

I set the debugging in the functions_email.php to 5, and this is the result I get. The url appears to be malformed, usually I would expect to see smtp://127.0.0.0.1 or something similar.

SMTP -> ERROR: Failed to connect to server ://127.0.0.1 25: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)

Email Error: SMTP Error: Could not connect to SMTP host.

My email settings are below, I'm running IIS6's smtp host with open relay and telneting to 127.0.0.1 25 will allow me to send a message. The email archive in zencart is empty as well.

E-Mail Transport Method smtp
SMTP Email Account Mailbox
SMTP Email Account Password
SMTP Email Mail Host 127.0.0.1
SMTP Email Mail Server Port 25
twistertires,
It shouldn't be trying to add :// to your server address unless you've attempted to configure it to use other than default protocols.
Hack this out of your /includes/classes/class.smtp.php to bypass all support for other protocols:```
if($this-Protocol != '') $host = $this->Protocol."://".$host;


**CORRECTION: Removing the line is unnecessary. Fixing the typo in it is the better solution.  Posted here:**
<http://www.zen-cart.com/forum/showthread.php?t=82570>

.
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.

6 Dec 2007, 3:01 PM
#9
twistertires avatar

twistertires

New Zenner

Join Date:
Dec 2007
Posts:
7
Plugin Contributions:
0

Post #9 by twistertires

That resolved it! thank you for the quick reply.

9 Dec 2007, 6:12 AM
#10
tinypack avatar

tinypack

New Zenner

Join Date:
Apr 2007
Location:
Spudville
Posts:
60
Plugin Contributions:
0

Post #10 by tinypack

Just wanted to say that I had this same issue and applied the fix to the /includes/classes/class.smtp.php and it solved the problem. Not sure if it was a server side issue (had server issues today) or software bug. But it is working now. I may try removing the fix in a week or so and see if perhaps it was indeed a server issue.

www.PrairieRoses.com
A Country Sensibility

10 Dec 2007, 11:35 AM
#11
cochlear avatar

cochlear

Zen Follower

Join Date:
Apr 2007
Location:
Sydney
Posts:
110
Plugin Contributions:
0

Post #11 by cochlear

tinypack:

Just wanted to say that I had this same issue and applied the fix to the /includes/classes/class.smtp.php and it solved the problem.
Same here. Didn't have this problem with 1.3.7.

My testing enviroment: XAMPP Mercurymail + WinXP; E-Mail Transport Method in Zen Cart**: **smtp

10 Dec 2007, 3:05 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #12 by drbyte

Hmm ... Actually, there's a bug in that line ... which is why removing it would work as a temporary bandage.

Here's the real solution:
http://www.zen-cart.com/forum/showthread.php?t=82570

.
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.

10 Dec 2007, 7:17 PM
#13
tinypack avatar

tinypack

New Zenner

Join Date:
Apr 2007
Location:
Spudville
Posts:
60
Plugin Contributions:
0

Post #13 by tinypack

BTW, the temporary fix allows most emails to go through, but I can't send the newsletter.

www.PrairieRoses.com
A Country Sensibility