CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • gmail smtp settings?
Pages: [1]

Author Topic: gmail smtp settings?  (Read 14768 times)

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
gmail smtp settings?
February 06, 2008, 11:37:25 am
I am trying to get the "Send email to contacts" working. I am using Google apps for my domain, so smtp.google.com is my SMTP server. So far I have:

(1)Filled out settings like this in Administer CiviCRM » Global Settings » Outbound Email (SMTP):

SMTP server: smtp.gmail.com
SMTP port: 465
Authentication? Yes
User: emailaddy@mygoogleappsdomain.net

(2)Set the password in civicrm.settings.php

If I have the above settings and I try to "Send email to contacts" from a search results page, the browser just churns for about five minutes and them displays a blank page. No email is sent.

If I change the port, I get this:

Code: [Select]
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] =>
    [message] => SMTP server does no support authentication
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="SMTP server does no support authentication" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)

Google gives these settings for their SMTP:

Outgoing Mail (SMTP) Server - requires TLS:     smtp.gmail.com (use authentication)
Use Authentication: Yes
Use STARTTLS: Yes (some clients call this SSL)
Port: 465 or 587

My guess is that I need to tell civicrm to use TLS and STARTTLS. Can it do this?



[/code]

rob123

  • Guest
Re: gmail smtp settings?
February 21, 2008, 11:44:46 am
No, CiviCRM doesn't handle TLS.

I can only vouch for 1.9 though, haven't looked into 2.0

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: gmail smtp settings?
February 21, 2008, 12:06:33 pm

can u try using the suggestion here: http://forum.civicrm.org/index.php/topic,2323.msg9879.html#msg9879

this might work. we dont have a google apps account, hence cant check :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: gmail smtp settings?
February 26, 2008, 08:09:08 am
Thank you! I tried this and it does indeed work! The biggest problem is what tobiaseigen reported: "it changed the "from" address of the emails I sent to my gmail username." This caused my test mail to end up in the spambox.

To summarize: Google Apps Gmail will work with the following settings:

SMTP server address : ssl://smtp.gmail.com
SMTP server port: 465
SMTP username: [username@gmail.com/username@yourtlddomain.com]
SMTP password: [yourpassword] (set in civicrm.settings.php)

(as suggested in http://forum.civicrm.org/index.php/topic,2323.msg9879.html#msg9879)

Thanks again lobo and tobiaseigen!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • gmail smtp settings?

This forum was archived on 2017-11-26.