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) »
  • How to dynamically filter contacts for a Campaign
Pages: [1]

Author Topic: How to dynamically filter contacts for a Campaign  (Read 427 times)

crazywolf

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 4.10
  • PHP version: 5
How to dynamically filter contacts for a Campaign
April 25, 2013, 04:05:33 am
Hi
I can see I have to add each contact to a particular group before I target my EMail/SMS mailing to a group.
The mailing screen doesn't give an option to select contacts on go using a query criteria.

Can I build email/sms recipient list dynamically? I mean can I say target XYZ mailing to anyone in age group of 20-30?

Thanks

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How to dynamically filter contacts for a Campaign
April 25, 2013, 04:09:19 am
use advanced search (or any search) one of the action is batch email, that will let you send the emails to these contacts.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

crazywolf

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 4.10
  • PHP version: 5
Re: How to dynamically filter contacts for a Campaign
April 25, 2013, 04:16:13 am
Hi,
Thanks for a quick response. I can see a mass mail option there  when carried out a smart search.

I have 2 voucher codes (VOU20) for 20-30 years old and other (VOU30)  for 30-40 years old.
Depending on age recorded for a contact I wish to send the Voucher code accordingly. I do not want to create 2 mails for this but wish to use single mail and then replace variable in actual mailing.

This is an example only actually I have hundreds of voucher codes and need to mail them dynamically.

There is an PHP option within HTML editor and not sure if that can help me to replace values.
Do you have any example on how this could be done?

Regards

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How to dynamically filter contacts for a Campaign
April 25, 2013, 01:07:23 pm
you will need to create an extension with a custom token.

X+

P.S. If you want to make friends with the api team, I'd suggest you to create vouchers for 40+ too ;)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • How to dynamically filter contacts for a Campaign

This forum was archived on 2017-11-26.