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) »
  • using CiviMail with custom email recipient
Pages: [1]

Author Topic: using CiviMail with custom email recipient  (Read 441 times)

fuoriorario

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5.38
  • PHP version: 5.4
using CiviMail with custom email recipient
September 10, 2014, 12:55:04 am
Hi CiviCommunity,
in my CiviCRM project I have a drupal node with a list of CiviCRM contacts and I want to send an email (using the CiviMail form) to this list of contacts.
How can I use CiviMail to send an email to a list of custom email recipient?

Thanks.

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 CiviMail with custom email recipient
September 10, 2014, 12:58:40 am
how are you civi contacts getting on the node?
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

fuoriorario

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5.38
  • PHP version: 5.4
Re: using CiviMail with custom email recipient
September 10, 2014, 01:01:02 am
Quote from: petednz on September 10, 2014, 12:58:40 am
how are you civi contacts getting on the node?
with a simple SQL query to civicrm database

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: using CiviMail with custom email recipient
September 10, 2014, 04:16:01 am
I think you should be able to use http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm

to set the default values.

PS. That isn't the CiviMail form. It is the send email form and is limited to 50 recipients or so.

Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

fuoriorario

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5.38
  • PHP version: 5.4
Re: using CiviMail with custom email recipient
September 10, 2014, 06:04:30 am
Quote from: Michael McAndrew on September 10, 2014, 04:16:01 am
I think you should be able to use http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm

to set the default values.

PS. That isn't the CiviMail form. It is the send email form and is limited to 50 recipients or so.

Michael
Thank you Michael.
Ok, I can create the hook, but I don't know how to add or call the form into my page. I can also make a civicrm page instead of drupal page, but I was unable to find something useful in the documentation.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: using CiviMail with custom email recipient
September 12, 2014, 02:57:26 am
When we did it, we constructed a URL with an extra parameter that could be picked up by buildForm (https://github.com/michaelmcandrew/gp/blob/master/drupal/sites/all/modules/custom/gpew_local_party_access/gpew_local_party_access.module#L92 is an example)

Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • using CiviMail with custom email recipient

This forum was archived on 2017-11-26.