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) »
  • If mailer sending crashes, does 100% sent mean 100% sent?
Pages: [1]

Author Topic: If mailer sending crashes, does 100% sent mean 100% sent?  (Read 818 times)

alanms

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
If mailer sending crashes, does 100% sent mean 100% sent?
March 08, 2012, 09:35:33 am
I got a panicked phone call from a former client. A dreaded MySQL Has Gone Away error occurred during the sending of an important mailing. The mailing report says emails were sent to 100% of contacts. But does this actually mean what it says?

Is this based on an actual tally of emails that were actually sent, meaning we don't need to worry and 100% of emails definitely sent? Or is it simply based on the number of contacts where the email wasn't blocked or deliberately filtered - in which case, an unknown number might not have sent?

Is there any other way of verifying how many actual emails actually definitely sent?

(I know about MySQL Has Gone Away errors and methods to avoid them by the way, and it's something I'll get on to. But the immediate worry is knowing whether this important, time-sensitive mailing actually sent to 100% of the recipients or not, and if not, how to know who on the mailing list we need to send to)

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: If mailer sending crashes, does 100% sent mean 100% sent?
March 08, 2012, 09:41:03 am
I think "MySQL Has Gone Away" error is related to the server. So I would suggest checking with your server admin.

Kurund
Found this reply helpful? Support CiviCRM

alanms

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: If mailer sending crashes, does 100% sent mean 100% sent?
March 08, 2012, 09:41:43 am
"I know about MySQL Has Gone Away errors and methods to avoid them by the way, and it's something I'll get on to. But the immediate worry is knowing whether this important, time-sensitive mailing actually sent to 100% of the recipients or not, and if not, how to know who on the mailing list we need to send to"

alanms

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: If mailer sending crashes, does 100% sent mean 100% sent?
March 08, 2012, 09:43:50 am
MySQL Has Gone Away errors ARE server configuration issues, it usually means the MySQL server's memory was exhausted. There's loads of discussion of it here and elsewhere. As I said, that's not the issue or the question.

The question is about how the % sent statistics are calculated, and (as a secondary thing) about if there is any other way of knowing which emails sent and which didn't.

alanms

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: If mailer sending crashes, does 100% sent mean 100% sent?
March 08, 2012, 09:58:16 am
...I'm looking in the source code and so far it's inconclusive.

There's a 'mark_processed' function and a 'mark_ignored' function for each type of mailer in civicrm/CRM/Mailing/MailStore but it's not clear if an individual mail to an individual contact is marked as 'processed' then sent (meaning it might not have actually sent, and the % sent stat is not a reliable measure), or, if they are sent then marked as processed on success (in which case, it must have sent, and the % sent stat is a reliable measure)
« Last Edit: March 08, 2012, 09:59:47 am by alanms »

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: If mailer sending crashes, does 100% sent mean 100% sent?
March 08, 2012, 10:24:20 am

hey alan:

basically that number is the number of emails that were successfully handed off to the mail server.

Which means for all practical purposes they were sent. A few of them will come back as bounces, but from a delivery perspective civi is done with the mailing

the code u r looking at (mark_processed etc) deals with the bounces/replies so that is not relevant here

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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • If mailer sending crashes, does 100% sent mean 100% sent?

This forum was archived on 2017-11-26.