Zen Cart Logo
Forums / Installing on a Windows Server / Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

Views: 6,245

Results 1 to 14 of 14
14 Feb 2012, 8:53 PM
#1
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

I am sure many "totally zenned" have done this before: I already set up wamp server on my local machine so I can learn/create/debug zencart website locally, but without mail server, some important features cannot be tested.

I wonder how can I set up gmail as the mail server for my local wamp server? or if there is other mail server that I can use and how to configure it if there is any?

Thank you very much.

15 Feb 2012, 2:20 AM
#3
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

DrByte:

A forum search for the terms in your post brings up several articles which point to this: http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Email_Problems#Google_Mail_.2F_Gmail

Thank you but it is throwing error: Could not connect to SMTP host.

I have attached my class.smtp.php for your reference. Thank you.

15 Feb 2012, 2:23 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

I've not looked at your attachment. Please explain why you're posting a file that already comes with Zen Cart.
I can follow the instructions I posted above and use gmail just fine from a localhost setup. I don't need to alter class.smtp.php for any reason. Why did you?

15 Feb 2012, 2:49 AM
#5
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

DrByte:

I've not looked at your attachment. Please explain why you're posting a file that already comes with Zen Cart.
I can follow the instructions I posted above and use gmail just fine from a localhost setup. I don't need to alter class.smtp.php for any reason. Why did you?

Sorry, I didn't alter any thing to the file, the reason I posted here is I came across one of your old post so I thought you might to read it.

I want to use Gmail for my local wamp/zencart installation.

I follow the instruction but it still gives me the above error. For your information, I copied the steps here:

Email Transport: SMTPAUTH
Email Linefeeds: CRLF
SMTP Username: your gmail/google-apps-mail username
SMTP Password: your gmail/google-apps-mail password
SMTP Host: smtp.gmail.com
SMTP Port 465 or 587 (I tried both)

Thank you for your reply.

15 Feb 2012, 3:16 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

The instructions work fine for me.
Must be something blocking it in your firewall or internet connection.

15 Feb 2012, 3:19 AM
#7
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

DrByte:

The instructions work fine for me.
Must be something blocking it in your firewall or internet connection.

My firewall is set to off, internet connection has no problem otherwise how can I post here?

15 Feb 2012, 3:20 AM
#8
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

DrByte:

The instructions work fine for me.
Must be something blocking it in your firewall or internet connection.

Do you have special configuration in your gmail account? Maybe that's what I've missed?

15 Feb 2012, 3:35 AM
#9
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

I just installed ThunderBird, I have no problem sending/receiving email using it.

15 Feb 2012, 5:33 AM
#10
drbyte avatar

drbyte

Sensei

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

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

mdivk:

My firewall is set to off, internet connection has no problem otherwise how can I post here?

Posting here (port 80) is completely different than trying to send email (other ports, often blocked by ISP).

15 Feb 2012, 1:56 PM
#11
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

DrByte:

Posting here (port 80) is completely different than trying to send email (other ports, often blocked by ISP).

Good point, then what's the difference between sending email from zencart and from thunderbird? I have no issue with thunderbird.

Thanks.

15 Feb 2012, 8:01 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

I can send from both just fine, using plain-jane out-of-the-box Zen Cart code, as well as Thunderbird and numerous other email clients.
All I need to do in Zen Cart is set the values in the Admin->Configuration->Email Options screen as I pointed out earlier.

15 Feb 2012, 8:57 PM
#13
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

DrByte:

I can send from both just fine, using plain-jane out-of-the-box Zen Cart code, as well as Thunderbird and numerous other email clients.
All I need to do in Zen Cart is set the values in the Admin->Configuration->Email Options screen as I pointed out earlier.

Then in your opinion, where should I start troubleshooting? Thanks.

15 Feb 2012, 9:04 PM
#14
drbyte avatar

drbyte

Sensei

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

Re: Can anyone provide a tutorial to use Gmail as local wamp server's mail server?

Why exactly are you trying to send out emails from a localhost server anyway? Surely you're not running your live server from localhost, so there's no business need for sending out emails.

Perhaps the wamp support site can help you troubleshoot your email problems. But they probably don't support what you're trying to do anyway, since they probably have an email server in wamp already that they would support.