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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Using a contact list to send a mailing
Pages: [1]

Author Topic: Using a contact list to send a mailing  (Read 413 times)

VitorFF

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 1
  • CiviCRM version: 4.4.11
  • CMS version: Drupal 7.27
  • MySQL version: 5.5
  • PHP version: 5.4
Using a contact list to send a mailing
February 26, 2015, 01:51:47 am
Hello guys!

I'm developing a custom feature where we want to let our users send mailing via our custom dashboard. They can use our custom search feature to create a contact list to send a mailing.

For what I could tell the mailing feature requires a group to send a mailing. Will I have to create a hidden group like it is done to send a mailing via the search on civi or is there a way of send a contact list (a bunch of civi IDs) and that process is done automatically?
Do the contacts I want to mail have to be present on the Unsubscribe group beforehand?

Also, if I choose to track replies where can I see the reply content (the message itself) on Civi? Does it actually save the message or just saves that a reply as been sent?

Thank for your time!
VitorFF
Why don't you take a look at this? (You will not regret it!)

Capitalisation Corrector : https://civicrm.org/extensions/capitalisation-corrector

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Using a contact list to send a mailing
February 26, 2015, 11:20:04 am
If there are any major obstacles to what you are doing i would flag that another option might be to use Drupal Views Bulk Operations (VBO) with civicrm entities modules so that users have a search interface and selector they can then use to set up a mail out. There will be some steps missing that need developing but it could be a good Plan B ;-)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Using a contact list to send a mailing
February 26, 2015, 12:33:11 pm
Yes, CiviMail does require a group -- so if you want to take an adhoc selection contacts then schedule+track the blast, it needs a hidden group.

The contacts do not need to be in the unsubscribe group beforehand. (Or if they do, it's magic, because I refactored that code and didn't see anything which put them into the subscribe group. ;) )

VitorFF

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 1
  • CiviCRM version: 4.4.11
  • CMS version: Drupal 7.27
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Using a contact list to send a mailing
February 27, 2015, 01:10:40 am
Wow guys, thanks a lot for your help!

I think I will create a hidden group and use it. Also create a base group to use as an unsubscribe group for all the hidden groups the code will create.

Thanks guys!

VitorFF
Why don't you take a look at this? (You will not regret it!)

Capitalisation Corrector : https://civicrm.org/extensions/capitalisation-corrector

Erich Schulz

  • I post frequently
  • ***
  • Posts: 142
  • Karma: 5
    • When no-one understands what you are going on about its time to start a blog
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.somthing
  • PHP version: 5.3.3
Re: Using a contact list to send a mailing
March 05, 2015, 05:07:40 am
I have pretty much the same need. It would be great to be able to skip the group stage.

VitorFF

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 1
  • CiviCRM version: 4.4.11
  • CMS version: Drupal 7.27
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Using a contact list to send a mailing
March 05, 2015, 05:48:34 am
I still haven't finished working on this but the way I did it for our custom needs is to create a hidden group and set a default unsubscription group.

Also you can see how the hidden group is created here CRM/Mailing/Form/Group.php postProcess() line 337 (version 4.4.11)
Why don't you take a look at this? (You will not regret it!)

Capitalisation Corrector : https://civicrm.org/extensions/capitalisation-corrector

Erich Schulz

  • I post frequently
  • ***
  • Posts: 142
  • Karma: 5
    • When no-one understands what you are going on about its time to start a blog
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.somthing
  • PHP version: 5.3.3
Re: Using a contact list to send a mailing
March 07, 2015, 05:06:24 am
An example snippet would be great!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Using a contact list to send a mailing

This forum was archived on 2017-11-26.