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 not sending mail to some recipients
Pages: [1]

Author Topic: CiviMail not sending mail to some recipients  (Read 694 times)

Martin.Schwenke

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6.x
  • MySQL version: 5.1.x
  • PHP version: 5.3.x
CiviMail not sending mail to some recipients
December 01, 2010, 08:02:17 pm
I'm seeing a problem where CiviMail isn't sending a message to all intended recipients.  What's more the mail also isn't being added to the activities list.

I can characterise the problem:

  • The missing recipients are part of a search result (aka "smart group") that is being used to decide who the mailing goes to.
  • The missing recipients have been marked as "Removed" from the base group for the mailing.

It looks like CiviMail constructs the list of recipients by taking the members of the smart group, subtracting members of the base group (including those marked "Removed"), and then adding back the base group.  This means that "Removed" members of the base group miss out...

One place where I can see something like this happening is CRM/Contact/BAO/GroupContact.php in the function getGroupList().  This looks to get a list of groups for a contact without considering whether the status is "Added".  I could be wrong... and I'd doubt that this function is called in the path of interest.

Actually in CRM/Mailing/BAO/Mailing.php the query $unSubscribeBaseGroup seems to be the problem.  Why does it consider the "Removed" members of the base group?  I don't see why ex-members of a group should affect the list of recipients...

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: CiviMail not sending mail to some recipients
December 01, 2010, 08:39:35 pm
It is expected behavior.

The mailing should go out to all of the search results contacts plus the ones belonging to the base group, minus the contacts from the excluded groups/mailing and minus anyone who unsubscribed/was removed from the base group.

for more insight on this functionality related issue is here : http://issues.civicrm.org/jira/browse/CRM-3711

kiran
You Are Designed To Choose... Defined By Choice.

Martin.Schwenke

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6.x
  • MySQL version: 5.1.x
  • PHP version: 5.3.x
Re: CiviMail not sending mail to some recipients
December 02, 2010, 01:36:57 am
Quote from: Kiran Jagtap on December 01, 2010, 08:39:35 pm
It is expected behavior.

The mailing should go out to all of the search results contacts plus the ones belonging to the base group, minus the contacts from the excluded groups/mailing and minus anyone who unsubscribed/was removed from the base group.

for more insight on this functionality related issue is here : http://issues.civicrm.org/jira/browse/CRM-3711

Thanks for that.  I've never really understood the idea of the base group...  but this kind-of helps me understand its purpose.

You've made me re-think how we do things.  We should be using existing smart groups and using "Mailings -> New Mailing" to send email to members of the smart groups, instead of repeating the same old searches and then getting confused about the base group.  :-)

Thanks again!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail not sending mail to some recipients

This forum was archived on 2017-11-26.