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) »
  • Multiple email address token for Bulk Email
Pages: [1]

Author Topic: Multiple email address token for Bulk Email  (Read 257 times)

bhcohen

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.45
  • CMS version: Wordpress
  • MySQL version: 5.5.40-0ubuntu0.12.04.1
  • PHP version: 5
Multiple email address token for Bulk Email
November 16, 2014, 07:27:32 am
We have contacts with multiple e-mail addresses designated to receive Bulk Email.  When we send bulk e-mail they receive a copy to each e-mail address.   

I'm looking for a token that will insert the e-mail address used for the bulk email, not the primary email address.   {contact.email} seems to insert the primary e-mail address.

For example, Jim Smith has three mail addresses, all designated to receive bulk email.

jsmith@example.org <---- primary + bulk
james@example.org <---- bulk
jim@example.org  <-- bulk

If I use {contact.email}, messages sent to all three e-mail address will have 'jsmith@example.org'.

I want a token that will insert 'jsmith@example.org' into the message sent to 'jsmith@example.org' and insert 'james@example.org' into the message sent to 'james@example.org' and 'jim@example.org' into the message sent to 'jim@example.org'

Does such a token exist?

Thanks!

-Bruce

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Multiple email address token for Bulk Email
November 16, 2014, 07:53:35 am

no, that token does not exist

It probably is a good token to have in the context of civimail. If you have the skills, would be great if you can take a look at the mailing code and figure out where and how to add that token

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

bhcohen

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.45
  • CMS version: Wordpress
  • MySQL version: 5.5.40-0ubuntu0.12.04.1
  • PHP version: 5
Re: Multiple email address token for Bulk Email
November 16, 2014, 10:45:54 am
Lobo,
  Thanks for the quick reply.  My PHP development skills are pretty basic at the moment  :-(

-Bruce

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Multiple email address token for Bulk Email

This forum was archived on 2017-11-26.