Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2007
    Location
    Boston, MA, USA
    Posts
    40
    Plugin Contributions
    0

    Default 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):

    Code:
    #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:

    Code:
    header('Location: ' . $url);

    How can I fix this?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Cannot send any messages

    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
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2007
    Location
    Boston, MA, USA
    Posts
    40
    Plugin Contributions
    0

    Default Re: Cannot send any messages

    I put in all that information already.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Cannot send any messages

    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
    .

    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.

  5. #5
    Join Date
    Jan 2007
    Location
    Boston, MA, USA
    Posts
    40
    Plugin Contributions
    0

    Default Re: Cannot send any messages - gmail

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

 

 

Similar Threads

  1. v139f Re: Problems trying to send site email through gmail server....
    By osdparts in forum Basic Configuration
    Replies: 11
    Last Post: 15 Mar 2013, 06:48 AM
  2. Cannot send session cookie / Cannot modify header information
    By witch-of-germany in forum General Questions
    Replies: 9
    Last Post: 10 Apr 2011, 01:00 AM
  3. Replies: 2
    Last Post: 1 Oct 2009, 10:18 PM
  4. Replies: 0
    Last Post: 25 Jun 2008, 11:35 AM
  5. cannot send mail -- using gmail account
    By karey in forum General Questions
    Replies: 0
    Last Post: 30 Mar 2008, 04:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg