Results 1 to 9 of 9

Thread: problem with SMTP and Gmail

  1. #1
    alejandrops is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Buenos Aires
    Posts
    59

    Default problem with SMTP and Gmail

    I'm having problems sending SMTP mail with gmail
    I already set up my smtp account (wich is working with outlook) as described in
    http://sugarcrm.openapp.org/?p=159
    and still no luck.
    the log says:
    Fatal SugarCRM - SugarPHPMailer encountered an error: SMTP Error: Could not authenticate
    Fatal SugarCRM - SugarPHPMailer encountered an error: The following From addreses failed: xxx@gmail.com

    tried with another email account and worked ok, so the problem is with gmail smtp or maybe with the authentication or the port?
    any idea?

    thanks, Im desperate!

    PS:
    Sugar 4.5f, windows 2k.
    had the same problem with 4.2.1b
    __________
    alejandrops

  2. #2
    mvlach is offline Member
    Join Date
    Oct 2005
    Posts
    6

    Default Re: problem with SMTP and Gmail

    I'm not testing this myself, so I don't know if it will work, but I know that the gmail smtp server uses post 465, with SSL, as opposed to port 587 as the instructions have you do.

  3. #3
    alejandrops is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Buenos Aires
    Posts
    59

    Default Re: problem with SMTP and Gmail

    thanks for the answer, already tried 456, but I have worst problems with 465, I got a blank screen and the log shows me nothing.

    help please!
    __________
    alejandrops

  4. #4
    sanjaykatiyar1's Avatar
    sanjaykatiyar1 is offline Sugar Community Member
    Join Date
    Feb 2006
    Location
    Bangalore
    Posts
    600

    Default Re: problem with SMTP and Gmail

    According to the gmail documentation SMTP port can be 465 or 587

    http://mail.google.com/support/bin/a...y?answer=13287
    Sanjay Katiyar
    iPhone and Android solutions http://www.apptility.com

  5. #5
    alejandrops is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Buenos Aires
    Posts
    59

    Default Re: problem with SMTP and Gmail

    sanjaykatiyar1, did you make it work?
    __________
    alejandrops

  6. #6
    mseftel is offline Junior Member
    Join Date
    Jun 2007
    Posts
    1

    Default Re: problem with SMTP and Gmail

    Quote Originally Posted by alejandrops
    sanjaykatiyar1, did you make it work?
    hi there,

    I also need a resolution to this problem.

    i read most the threads on this SMTP gmail issue and no one seems to have cracked it.... Their must be A LOT of people out there which are looking for a solution.

    As for me as a sugar crm "prospect" this is a potential deal breaker.

    Has anyone found a solution for this yet?

  7. #7
    lonecrow is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    36

    Default Re: problem with SMTP and Gmail

    It is a bug in PHP ref: http://bugs.php.net/bug.php?id=36496

    I updated to PHP 5.2.2 I was successful in connecting to gmail after upgrading to this version.

    BUT WAIT!

    There seems to be an issue with the SugarCRM installer and this version of PHP. First of all its not on the approved list of PHP version (currently stops at 5.2.1 I think)

    My currently installed sites work fine (so far) but the installer is tossing up Smarty issues. Not sure if you'll have the same problem, but be forewarned before upgrading PHP.

    If you do upgrade, and you get the Smarty errors, and you resolve them...PLEASE let me know

  8. #8
    tbastos is offline Member
    Join Date
    Apr 2007
    Posts
    5

    Default problem with SMTP and Gmail

    Ok, I just lost 2 hs to solve this problem, 1 h searching forums and 1h working it out. The problem i had was - No authentication... ok so lets check why does it happens. My Sugar is ok to Gmail, soh it must be a problem with the phpmailer... so lets crack it out and make it works.

    add as smtp server inside your Sugar the server for outbound: ssl://smtp.gmail.com
    with the SSL will force phpmailer to take it.

    Then open the file class.phpmailer.php and comment out this line
    /* if(strstr($hosts[$index], ":"))
    list($host, $port) = explode(”:”, $hosts[$index]);
    else */

    I got it around line 540-541...
    and it works...

  9. #9
    Robsteranium is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    17

    Thumbs up Re: problem with SMTP and Gmail

    Quote Originally Posted by tbastos
    add as smtp server inside your Sugar the server for outbound: ssl://smtp.gmail.com
    with the SSL will force phpmailer to take it.

    Then open the file class.phpmailer.php and comment out this line
    /* if(strstr($hosts[$index], ":"))
    list($host, $port) = explode(”:”, $hosts[$index]);
    else */

    I got it around line 540-541...
    and it works...

    Thanks to tbastos I'm able to send emails via gmail!
    I had to set the server to ssl://smtp.googlemail.com
    Now to get the campaign working...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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