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) »
  • Suggested procedure for recovering when a mailing sets many addresses 'on hold'
Pages: [1]

Author Topic: Suggested procedure for recovering when a mailing sets many addresses 'on hold'  (Read 675 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Suggested procedure for recovering when a mailing sets many addresses 'on hold'
July 23, 2010, 01:02:38 am
Background: Today I sent an email to the folks in one of my groups. The outgoing email parameters had been changed (I don't know how), so all deliveries failed and all the email addresses referenced in the mailing were put 'on hold'.

Recovery strategy: I chose to find all the email addresses for contacts in the affected group and mark them as not 'on hold'. This over-corrects the problem, in that some genuine 'on hold' addresses are changed, but this is not a big deal: the next mailing will discover the truly 'on hold' addresses.

Option 1: Upgrade to CiviCRM v3.2 - see Kurund's comment below.

Option 2: This process assumes you sent the email to a group.

1. Discover the group number by going to CiviCRM > Contacts > Manage Groups and finding the group in the list. The group number is stored in the 'ID' column. The group number is indicated by <ID> in the following SQL and you'll need to replace that with your group number.

2. Check the affected contacts match your expectations by running the following query in SQL...

Code: [Select]
select
 civicrm_email.email,
 civicrm_contact.display_name,
 civicrm_group.name
from
 civicrm_email,
 civicrm_contact,
 civicrm_group_contact,
 civicrm_group
where
 civicrm_email.on_hold = 1 and
 civicrm_group.id = <ID> and
 civicrm_email.contact_id = civicrm_contact.id and
 civicrm_group_contact.group_id = civicrm_group.id and
 civicrm_contact.id = civicrm_group_contact.contact_id

The email addresses, contact names, and group name should match your expectations. The number of rows returned ought to be reasonable. If not, something is wrong and some more investigation may be required.

3. Remove the 'on hold' status from these contacts by running the following query in SQL...

Code: [Select]
update
 civicrm_email,
 civicrm_contact,
 civicrm_group_contact,
 civicrm_group
set
 civicrm_email.on_hold = 0
where
 civicrm_email.on_hold = 1 and
 civicrm_group.id = <ID> and
 civicrm_email.contact_id = civicrm_contact.id and
 civicrm_group_contact.group_id = civicrm_group.id and
 civicrm_contact.id = civicrm_group_contact.contact_id
« Last Edit: July 23, 2010, 06:46:18 pm by ken »

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: Suggested procedure for recovering when a mailing sets many addresses 'on hold'
July 23, 2010, 05:21:44 am
FYI in 3.2 we have added batch action to unhold emails. So you can find the contact email that are on hold and use batch action to un hold.

Kurund
Found this reply helpful? Support CiviCRM

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Suggested procedure for recovering when a mailing sets many addresses 'on hold'
July 23, 2010, 06:44:15 pm
Fantastic!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Suggested procedure for recovering when a mailing sets many addresses 'on hold'

This forum was archived on 2017-11-26.