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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Creating multiple emails/letters for each contact, using tokens
Pages: [1]

Author Topic: Creating multiple emails/letters for each contact, using tokens  (Read 676 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Creating multiple emails/letters for each contact, using tokens
April 29, 2012, 08:44:15 pm
I am planning some custom tokens that will be used in a school setting, for sending emails/PDF letters such as  "Dear Susan, your child Timmy will be in classroom ABC this fall. "  and other similar parent-focused communication.   Inside my hook for the custom token, I am looking up the name of the child and other details about the child.   

However, in many cases one parent has multiple children in the school. In this case, I would like each parent to get one message per child.   So if I do a search of all parents ( which returns 200 parents) each of whom have 2 children in school I would like to send 400 letters/emails.

Any ideas to how to get multiple letters/emails for each parent contact?

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Creating multiple emails/letters for each contact, using tokens

This forum was archived on 2017-11-26.