Zen Cart Logo
Forums / General Questions / SMTP-Auth & Gmail Issues

SMTP-Auth & Gmail Issues

Locked

Views: 55,605

Results 1 to 20 of 73
This thread is locked. New replies are disabled.
4 Oct 2006, 3:30 AM
#1
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

SMTP-Auth & Gmail Issues

I am using Google Hosted services for my website allenhuntshow.com. I am trying to setup a Zen-Cart interface using an Authorize.net processor. I have got most of it running EXCEPT I can't get it to send e-mail confirming orders, sending passwords, or anything. I have searched all the forums for about an hour but none seem to deal with my version of Zen-Cart (which is 1.3.5)

I am using Site5 as my host. Here is my config settings:

E-Mail Transport Method smtpauth
E-Mail Linefeeds LF
Use MIME HTML When Sending Emails false
Verify E-Mail Addresses Through DNS false
Send E-Mails true
Email Archiving Active? false
E-Mail Friendly-Errors false
Email Address (Displayed to Contact you) [email protected]
Email Address (sent FROM) [email protected]
Emails must send from known domain? No
Email Admin Format? HTML
Send Copy of Order Confirmation Emails To [email protected]
Send Copy of Create Account Emails To - Status 0
Send Copy of Create Account Emails To [email protected]
Send Copy of Tell a Friend Emails To - Status 0
Send Copy of Tell a Friend Emails To [email protected]
Send Copy of Customer GV Send Emails To - Status 0
Send Copy of Customer GV Send Emails To [email protected]
Send Copy of Admin GV Mail Emails To - Status 0
Send Copy of Customer Admin GV Mail Emails To [email protected]
Send Copy of Admin Discount Coupon Mail Emails To - Status 0
Send Copy of Customer Admin Discount Coupon Mail Emails To [email protected]
Send Copy of Admin Orders Status Emails To - Status 0
Send Copy of Admin Orders Status Emails To [email protected]
Send Notice of Pending Reviews Emails To - Status 0
Send Notice of Pending Reviews Emails To [email protected]
Set "Contact Us" Email Dropdown List
Allow Guest To Tell A Friend false
Contact Us - Show Store Name and Address 1
Send Low Stock Emails 0 Info
Send Low Stock Emails To [email protected]
Display "Newsletter Unsubscribe" Link? false
Audience-Select Count Display true
SMTP Email Account Mailbox [email protected]
SMTP Email Account Password ******
SMTP Email Mail Host stmp.gmail.com
SMTP Email Mail Server Port 465
Convert currencies for Text emails £,£:€,€

I get no error messages, nothing. It says it sends, but it never arrives! Any help would be greatly appreciated.

4 Oct 2006, 4:27 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: SMTP-Auth & Gmail Issues

Sectim42:

SMTP Email Mail Host stmp.gmail.com
SMTP Email Mail Server Port 465

  1. is it "smtp" or "stmp" ? Normally it would be "smtp".
  2. Did Google tell you to use port 465?
4 Oct 2006, 4:32 AM
#3
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

It is SMTP...sorry...in my attempts to troubleshoot the issue I re-entered the smtp address, but I did it wrong. It doesn't work when it is typed correctly either (smtp.gmail.com)

Yes, Google tells us to use 465. I also tried 25 just to see if it by chance worked, but neither worked.

4 Oct 2006, 4:48 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: SMTP-Auth & Gmail Issues

Sectim42:

I am using Google Hosted services for my website

.....

I am using Site5 as my host.

Um, who's Site5 vs Google Hosted Services?

4 Oct 2006, 4:51 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: SMTP-Auth & Gmail Issues

/includes/functions/functions_email.php
line 22 says:```
define('EMAIL_SYSTEM_DEBUG','0');


Then test placing an order and see what happens for emailing.
4 Oct 2006, 4:54 AM
#6
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

Man I am just a wreck tonight...sorry...thanks for your patience.

The Zen-Cart resides on a Site5 server. The DNS from the registrar points to Site5's DNS servers (ns.site5.com and ns2.site5.com). The MX records are then handled by Site5 which point to Google's Mail Hosting for our domain (which of course is in Beta testing, but then again, Gmail has been in beta testing for years!). So while the site's files are handled by Site5, the e-mail is handled by Google. I can POP/SMTP using Microsoft Entourage/Outlook using the login name as an e-mail address, password, smtp.gmail.com and port 465. That works with no problems. This on the other hand, I just can't get to work.

Does that make sense or am I still speaking jibberish.

4 Oct 2006, 5:02 AM
#7
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

Also, just so you know, in my version of Zen-Cart (1.3.5), line 22 is blank (ok it has a * )

But I think what you are talking about is line 17 in my version which currently says ```
define('EMAIL_SYSTEM_DEBUG','off');


I will change that to ```
define('EMAIL_SYSTEM_DEBUG','4');
``` And then see what happens
4 Oct 2006, 5:18 AM
#8
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

I did that and placed an order. I got the Authorize.net e-mail, but I did not get any e-mail from the Zen-Cart confirming the order. Zen-Cart says (under the Order section) that an e-mail was sent out but I never received it. I am not really sure what I am looking for in relation to the debugging? Is there a log somewhere?

4 Oct 2006, 5:30 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: SMTP-Auth & Gmail Issues

Try this revised version of functions_email.php:

4 Oct 2006, 5:41 AM
#10
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

After uploading the new file to /includes/functions/ and then trying to send an e-mail I get a page that says "Email error:" I checked the source and all that is to the page is ```html
<br /><br />Email error:


Was I suppose to change anything?
4 Oct 2006, 5:45 AM
#11
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

When I changed the DEBUG to '4' I got this above the "Email error:"

SMTP -> FROM SERVER: SMTP -> FROM SERVER: SMTP -> 
ERROR: EHLO not accepted from server:SMTP -> FROM SERVER: SMTP -> 
ERROR: HELO not accepted from server: SMTP -> ERROR: AUTH not accepted from server: SMTP -> 
NOTICE: EOF caught while checking if connected
4 Oct 2006, 5:47 AM
#12
drbyte avatar

drbyte

Sensei

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

Re: SMTP-Auth & Gmail Issues

That suggests that your connection to the mail server is being refused.

4 Oct 2006, 5:50 AM
#13
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

Do you know of any reason that would do that I can look into. I know for sure the address is correct, the password is correct, the port is correct and the smtp address is correct. Would it have something to do with the fact Gmail likes to have a "POP" access before a SMTP access? Is there anyway to force a POP access before sending. I heard something like once POP authorization clears, it adds the IP address to an accepted list for 30 minutes or something like that.

If that is just jibberish do you have any other suggestions?

4 Oct 2006, 5:54 AM
#14
drbyte avatar

drbyte

Sensei

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

Re: SMTP-Auth & Gmail Issues

Yes, forcing a POP connection first is one method that might be required.

Have you tried port 25 ?

I would have expected the output to at least show the gmail servername

4 Oct 2006, 5:56 AM
#16
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

I have tried Port 25. No luck. Ok and after taking a step back a rereading the Gmail instructions in a very detailed fashion, I realized one oversight might be is that they require an secure (SSL) connection to be checked when using Outlook/Entourage/Thunderbird. Would this be the problem I am looking at?

Also, how do I force POP first using Zen-Cart?

4 Oct 2006, 5:57 AM
#17
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

DrByte:

Granted, gmail's website says they want STARTTLS ... which Zen Cart doesn't do.
http://mail.google.com/support/bin/answer.py?answer=13287
So...basically I am screwed. Well, I will try to figure out another solution. I really like our domain being hosted by Gmail, but I will try and figure out one account I can have that is hosted elsewhere that doesn't require an SSL connection?

Don't spend a lot of time on this answer, but since you seem to be a Zen-Cart master, do you have any practical suggestions at this point?

4 Oct 2006, 6:07 AM
#18
drbyte avatar

drbyte

Sensei

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

Re: SMTP-Auth & Gmail Issues

Sectim42:

do you have any practical suggestions at this point?
Yes ... a traditional email account :P

4 Oct 2006, 6:10 AM
#19
sectim42 avatar

sectim42

New Zenner

Join Date:
Oct 2006
Posts:
11
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

DrByte:

Yes ... a traditional email account :P

Yeah I figured that was going to be the suggestion. I was just trying to keep everything on one domain, but we have both allenhuntshow.com and theallenhuntshow.com so I'll just setup ecommerce@theallenhuntshow.com to be on a traditional account and all the rest of the e-mails at just allenhuntshow.com. Because I am pretty sure I don't know how to setup up [email protected] to be setup on a traditional e-mail account where as everything else on the domain on Gmail.

Thanks for all your help - it isn't quite the answer I was looking for, but at least I can go to bed (at 2 am) not contemplating how to solve the problem thus keeping me up for another two hours.

4 Oct 2006, 9:29 PM
#20
yahaira avatar

yahaira

New Zenner

Join Date:
Feb 2006
Posts:
77
Plugin Contributions:
0

Re: SMTP-Auth & Gmail Issues

I was having the same problems as well, but I fixed them by contacting my host. The problem you're having is get emails from your domain to your domain. I bet if you went on cpanel and looked at your webmail it would all be sitting there.
I believe your host has to change the mailserver to a smarthost so that all the email goes to your gmail hosted box.

In the admin email section of zencart I still have everything set up like before, so I don't think you necessarily need to change that to gmail info.