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 »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • So close with gmail - home stretch! Getting error in CiviMailProcessor.php
Pages: [1]

Author Topic: So close with gmail - home stretch! Getting error in CiviMailProcessor.php  (Read 4619 times)

pdowling

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 4
So close with gmail - home stretch! Getting error in CiviMailProcessor.php
November 03, 2009, 09:06:24 pm
First let me preface by saying I seem to have the whole civimail thing just about there.  I can send civimail (actual send not just test).  It goes out through my external gmail account when running the cron job civimail.cronjob.php (I can see them in sent items).

So I'm on the final stretch of getting civimail to process bounces, returns, unsubs, etc.  Was having trouble so turned on smtp debugging in the code.  Here is the error I'm getting...

Code: [Select]
connecting to imap.gmail.com, authenticating as myemail@gmail.com and selecting Inbox
<br />
<b>Fatal error</b>:  Uncaught exception 'ezcMailTransportException' with message 'An error occured while sending or receiving mail. Failed to connect to the server: imap.gmail.com:993.' in /home/username/public_html/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/transport_connection.php:97
Stack trace:
#0 /home/username/public_html/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/imap/imap_transport.php(358): ezcMailTransportConnection-&gt;__construct('imap.gmail.com', 993, Object(ezcMailImapTransportOptions))
#1 /home/username/public_html/sites/all/modules/civicrm/CRM/Mailing/MailStore/Imap.php(60): ezcMailImapTransport-&gt;__construct('imap.gmail.com', NULL, Array)
#2 /home/username/public_html/sites/all/modules/civicrm/CRM/Mailing/MailStore.php(61): CRM_Mailing_MailStore_Imap-&gt;__construct('imap.gmail.com', 'myemail@gmail.com', 'accountpassword', true, 'Inbox')
#3 /home/username/public_html/sites/all/modules/civicrm/bin/CiviMailProcessor.php(91): CRM_Mailing_MailStore:: in <b>/home/username/public_html/sites/all/modules/civicrm/packages/ezc/Mail/src/transports/transport_connection.php</b> on line <b>97</b><br />

I'm going to quit for tonight.  Any thoughts based on the above on what I should try next?  Seems to be the right server name for gmail (imap.gmail.com) and the right port (993) as per gmail imap client instructions.  I've got the "use ssl" check box for the account selected (gmail client instructions say that is required).  So close!!

Anyway, I'd certainly be happy to document the whole thing once I have it working 100%.  It's been a step by step journey to be sure.  The last step is to get the return processing working!

Thanks...

Alan.Guggenheim

  • Guest
Re: So close with gmail - home stretch! Getting error in CiviMailProcessor.php
January 04, 2010, 05:02:00 pm
I am getting a very similar error and i am stuck. Did you fix it? How?

Thanks

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: So close with gmail - home stretch! Getting error in CiviMailProcessor.php
January 04, 2010, 05:30:01 pm

if you have shell access on your server, can you try:

% telnet imap.gmail.com 993

and see if it can connect to the gmail machines

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

Alan.Guggenheim

  • Guest
Re: So close with gmail - home stretch! Getting error in CiviMailProcessor.php
January 07, 2010, 07:41:11 am
Thanks, but actually I am not trying to connect to gmail, just to my cpanel email on the localhost

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: So close with gmail - home stretch! Getting error in CiviMailProcessor.php
January 16, 2010, 03:39:47 am
An alternative to telnet
Code: [Select]
openssl s_client -crlf  -connect ilovemymail.com:993

More secure (and more available in my hosts case)
« Last Edit: January 16, 2010, 08:18:37 pm by Eileen »
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: So close with gmail - home stretch! Getting error in CiviMailProcessor.php
January 16, 2010, 01:01:37 pm
This is the same issue as this:

http://forum.civicrm.org/index.php/topic,10721.15.html

I.e. changes to Google IMAP stop it working
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

1337ingDisorder

  • Guest
Re: So close with gmail - home stretch! Getting error in CiviMailProcessor.php
July 22, 2010, 10:36:21 am
Hi,

I'm getting a similar issue as above, though slightly different. It seems to be trying to connect to port 143 and I'm just wondering where I would tell it to connect to port 993 instead, as per the gmail requirements.

Can anyone help with that?

Thanks

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: So close with gmail - home stretch! Getting error in CiviMailProcessor.php
July 22, 2010, 07:33:27 pm

check:

http://drupal.demo.civicrm.org/civicrm/admin/mailSettings?action=update&id=1&reset=1

can u enable "use ssl" in which case, ezc uses port 993

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • So close with gmail - home stretch! Getting error in CiviMailProcessor.php

This forum was archived on 2017-11-26.