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 »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail won't send
Pages: [1]

Author Topic: CiviMail won't send  (Read 3134 times)

khnelson

  • Guest
CiviMail won't send
March 19, 2009, 02:47:47 pm
I am unable to send mail through the CiviMail module.  I am able to get the email from the CiviCRM SMTP test in the Configuration, but nothing from the CiviMail comes through.  I'm using the Joomla version, and tried 2.2 and 2.1 with the same issues.

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: CiviMail won't send
March 19, 2009, 05:16:27 pm

did you set up the cronjob (civimail.cronjob.php) in your server's cron script?

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

businessbroker

  • Guest
Re: CiviMail won't send
March 31, 2009, 05:46:22 pm
I have the same problem using cron and without receive any errors, drupal 6.10 and civicrm 2.2.1 with italian language, also using patch n° 2 about timezone to be sure that email wll be scheduled when i want, but they don't come to me also he don't create logs or errors, i'm on vps of versaweb.com.
« Last Edit: March 31, 2009, 09:10:25 pm by businessbroker »

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: CiviMail won't send
April 01, 2009, 12:28:29 pm
What do you see in your mail log (probably /var/log/mail.log)?

-- Walt
http://dharmatech.org
oss@dharmatech.org
801.541.8671

businessbroker

  • Guest
Re: CiviMail won't send
April 01, 2009, 01:14:25 pm
No errors in mail logs.. The mail  server does not seem to get any from civimail in it's queue.

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: CiviMail won't send
April 01, 2009, 01:49:09 pm
Quote from: businessbroker on April 01, 2009, 01:14:25 pm
No errors in mail logs.. The mail  server does not seem to get any from civimail in it's queue.

Well then the next step would be try running civimail.cronjob.php from your browser to see if anything helpful turns up.  Use your browser to visit

 http://www.example.com/sites/all/modules/civicrm/bin/civimail.cronjob.php

or however you have it configured to see what you get.  You will either need to supply some authentication in the URL or edit civimail.cronjob.php near line 51 to say

 CRM_Utils_System::authenticateScript( false );

(instead of true).

-- Walt
http://dharmatech.org
oss@dharmatech.org
801.541.8671

businessbroker

  • Guest
Re: CiviMail won't send
April 01, 2009, 03:54:46 pm
We tried authenticaion via url by specifying user/pass and key. But loading it on browser too dint result any email.

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: CiviMail won't send
April 01, 2009, 04:20:27 pm
Quote from: businessbroker on April 01, 2009, 03:54:46 pm
We tried authenticaion via url by specifying user/pass and key. But loading it on browser too dint result any email.
But no error messages either, right?

So that narrows the problem down a little.

-- Walt
http://dharmatech.org
oss@dharmatech.org
801.541.8671

businessbroker

  • Guest
Re: CiviMail won't send
April 01, 2009, 05:26:50 pm
Yes no errors, as always

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: CiviMail won't send
April 01, 2009, 07:35:45 pm
Well from reading the code, it looks like the lack of error messages means you authenticated OK because all the authentication failures write error messages.  I'll try to dig into it a little further.

-- Walt
http://dharmatech.org
oss@dharmatech.org
801.541.8671

businessbroker

  • Guest
Re: CiviMail won't send
April 05, 2009, 01:56:58 pm
Not sure why scheduling is not working, in db it still shows scheduled.

DHLao

  • Guest
Re: CiviMail won't send
April 07, 2009, 12:07:14 am
The problem of timezone

http://issues.civicrm.org/jira/browse/CRM-1021

CiviCRM, MySQL and the web server are all in the same localhost computer. So, I don't think this is the metter of inconsistent time setting between the server and CiviCRM.

« Last Edit: April 07, 2009, 12:10:26 am by DHLao »

businessbroker

  • Guest
Re: CiviMail won't send
April 07, 2009, 09:05:51 am
server time(PHP) and DB are same time in our case..

korzen

  • Guest
Re: CiviMail won't send
May 01, 2009, 12:43:19 pm
Hi folks, I'm having a similar problem.  Everything was working fine, but all of a sudden we can't send out anything to our full list.  I know that cron is working because whenever I schedule a bulk email to our Admin list (3 people) everything works fine.  But we I try to use the larger list ( > 46,000 members), the email just sits there as "Scheduled."

"Manually" hitting the cronjob script does nothing.

The only thing that has changed in recent weeks is that we've doubled our list size.  Would that be causing the system to time out or something?

Is there a way to debug the cronjob script?

Thanks!

korzen

  • Guest
Re: CiviMail won't send
May 01, 2009, 02:13:40 pm
UPDATE:  checked error logs (duh) and found the following:

PHP Fatal error: Maximum execution time of 30 seconds exceeded in [site root]/html/sites/all/modules/civicrm/packages/DB/DataObject.php on line 972

Indeed, our list growth caused the problem.  The DB query was taking so long it caused php to time out.  Adding the following line to civimail.cronjob.php put us back in business:

set_time_limit  ( 120 );

Perhaps this is what was causing others' woes?


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail won't send

This forum was archived on 2017-11-26.