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) »
  • CiviMail Not Sending, Outgoing Email is Working
Pages: [1]

Author Topic: CiviMail Not Sending, Outgoing Email is Working  (Read 6165 times)

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
CiviMail Not Sending, Outgoing Email is Working
May 01, 2012, 03:58:34 pm
I'm using CiviCRM 4.1.2, Drupal 7.12. I'm using CiviSMTP for outgoing mail. I've got all green lights on the CiviSMTP configuration. Sending out regular e-mail merge mailing from Civi works perfectly.

It's CiviMail mass mailings that aren't working. I get this error:
Quote
Delivery has not yet begun for this mailing. If the scheduled delivery date and time is past, ask the system administrator or technical support contact for your site to verify that the automated mailer task ('cron job') is running - and how frequently. (learn more...)

I've selected "Send now" in the mass mail set-up and I've gone to the page which is supposed to force-send any mail items waiting in the queue:

http://example.com/civicrm/mailing/queue&reset=1

(where "example.com" was set correctly to my client's domain).

I don't want to fully troubleshoot cron, at this point, because the mailing should be able to go without cron, yes? First I want to make sure the basic "send now" works before I attack cron.

Thanks in advance for any ideas about my problem.

Shai Gluskin

Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 12:08:13 pm
Quote from: Shai on May 01, 2012, 03:58:34 pm
I don't want to fully troubleshoot cron, at this point, because the mailing should be able to go without cron, yes?

No, it requires cron. But the new style cron is very easy to setup and you can turn off or on whichever jobs you want via the web interface. All crons are now unified. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 12:26:50 pm
OK,

So can you please help me parse the cron URL:

http://[SITEROOT]/sites/all/modules/civicrm/bin/cron.php?name=username&pass=password&key=site-key'

Is "site-key" the string in sites/default/civicrm.settings.php on line 171:
Code: [Select]
define( 'CIVICRM_SITE_KEY', 'some-string' );
What about username and password? Is that any Drupal account that has Civi perms?

Let me know if it is different, I have tried it with the above and cron didn't run.

Thanks for the help,

Shai Gluskin
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 12:29:44 pm
Yes you are right. What do you mean it didn't run? Did you set the jobs to go via the scheduled jobs page?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 12:37:31 pm
Hershel,

By "not running," I meant that the Cron job reporter on my server emailed me the following error report:

Code: [Select]
ERROR: You need to send a valid key to execute this file. More info at:http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration
Thanks for the attention.

Shai
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 12:39:15 pm
Quote from: Shai on May 02, 2012, 12:26:50 pm
Is "site-key" the string in sites/default/civicrm.settings.php on line 171:
Code: [Select]
define( 'CIVICRM_SITE_KEY', 'some-string' );

Yes it is. Perhaps yours is invalid? Try using a simple one of just a few letters, for a test.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 12:49:17 pm
Should cron run just by typing the long url with the name, pw, and string pasted into a browser?
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 12:52:44 pm
Yes.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 01:04:58 pm
I simplified the validation key (FYI it needs to be at least seven charactors long... I got an error message to that effect!). When I paste the url into my browser I get a blank white screen with no errors. Does that mean Cron ran.

But afterward, the same two mailings that I created yesterday have not been sent with the same message:

Code: [Select]
Delivery has not yet begun for this mailing. If the scheduled delivery date and time is past, ask the system administrator or technical support contact for your site to verify that the automated mailer task ('cron job') is running - and how frequently. (learn more...)
What next for troubleshooting?

Does Civi have a log like Drupal. I don't see that Civi messages are writing to Drupal's watchdog.

thanks again,

Shai
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 01:12:53 pm
Quote from: Shai on May 02, 2012, 01:04:58 pm
I simplified the validation key (FYI it needs to be at least seven charactors long... I got an error message to that effect!). When I paste the url into my browser I get a blank white screen with no errors. Does that mean Cron ran.

Yes

Quote from: Shai on May 02, 2012, 01:04:58 pm
Does Civi have a log like Drupal. 

No.

Have you enabled mailers in the Scheduled Jobs page?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Shai

  • I post frequently
  • ***
  • Posts: 202
  • Karma: 8
    • Content2zero
  • CiviCRM version: 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 7
  • MySQL version: 5.5.x
  • PHP version: 5.3.x, 5.4.x
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 02:02:35 pm
Aha, that was it. Everything was turned off on the Scheduled Jobs page.

Should not the "send now" check box on the mailings page be changed to say, "Next cron run?" That's how it works, yes?

Thanks so much for your help.

Shai
Don't miss out! Sign up now for free expert advice on CiviCRM's new StackExchange help site.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviMail Not Sending, Outgoing Email is Working
May 02, 2012, 02:08:07 pm
Quote from: Shai on May 02, 2012, 02:02:35 pm
Should not the "send now" check box on the mailings page be changed to say, "Next cron run?" 

Hmm, yes I suppose that might make more sense. You want to make an Issue via the Issue Tracker above and suggest that to the team?

Quote from: Shai on May 02, 2012, 02:02:35 pm
That's how it works, yes?

Yes.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • CiviMail Not Sending, Outgoing Email is Working

This forum was archived on 2017-11-26.