Zen Cart Logo
Forums / General Questions / Cannot send any messages - gmail

Cannot send any messages - gmail

Locked

Views: 3,043

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
14 Jan 2007, 5:41 AM
#1
michellyaqua12 avatar

michellyaqua12

New Zenner

Join Date:
Jan 2007
Location:
Boston, MA, USA
Posts:
40
Plugin Contributions:
0

Cannot send any messages - gmail

I get error messages when I try to send an email to customers (through the admin) and when I try to send a message through the form on my contact page. Both errors seem to be caused by the same thing.

Email to customers gives this message:

Warning: fsockopen(): unable to connect to smtp.gmail.com:25 in madebymichelle/includes/classes/class.smtp.php on line 115

Warning: Cannot modify header information - headers already sent by (output started at /home/content/D/a/d/Dadaya2000/html/madebymichelle/includes/classes/class.smtp.php:115) in madebymichelle/admin/includes/functions/general.php on line 34

Contact form has this message:

Warning: fsockopen(): unable to connect to smtp.gmail.com:25 in madebymichelle/includes/classes/class.smtp.php on line 115

Warning: Cannot modify header information - headers already sent by (output started at /home/content/D/a/d/Dadaya2000/html/madebymichelle/includes/classes/class.smtp.php:115) in madebymichelle/includes/functions/functions_general.php on line 41

class.smtp.php says (line 110-116):

#connect to the smtp server
    $this->smtp_conn = fsockopen($host,    # the host of the server
    $port,    # the port to use
    $errno,   # error number if any
    $errstr,  # error message if any
    $tval);   # give up after ? secs
    # verify we connected properly

Both general.php line 34 and functios_general.php line 41 say:

header('Location: ' . $url);

How can I fix this?

14 Jan 2007, 12:30 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Cannot send any messages - gmail

You need to provide the correct settings for gmail...or as you have a hosting account alternatively aetup site emails in this account with your domain name as the address (more Professional).

admin > config > email >

SMTP Email Account Mailbox YourEmailAccountNameHere
SMTP Email Account Password YourPasswordHere
SMTP Email Mail Host mail.EnterYourDomain.com
SMTP Email Mail Server Port

smtp.gmail.com
Port = 465

14 Jan 2007, 6:07 PM
#3
michellyaqua12 avatar

michellyaqua12

New Zenner

Join Date:
Jan 2007
Location:
Boston, MA, USA
Posts:
40
Plugin Contributions:
0

Re: Cannot send any messages - gmail

I put in all that information already.

19 Jan 2007, 11:33 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Cannot send any messages - gmail

Simple ... don't use gmail's SMTP for sending.

While some claim to have had success in using gmail for sending mail from Zen Cart, there is no hard fast rule on it. I've not seen it working for the average gmail account, as Zen Cart does not have TLS support at the present time, and gmail states that it is required.

Also worth reading: http://www.zen-cart.com/forum/showthread.php?t=52808

20 Jan 2007, 10:46 PM
#5
michellyaqua12 avatar

michellyaqua12

New Zenner

Join Date:
Jan 2007
Location:
Boston, MA, USA
Posts:
40
Plugin Contributions:
0

Re: Cannot send any messages - gmail

Thank you. You're right. I tried a different email address and everything works with that.