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 CiviContribute (Moderator: Donald Lobo) »
  • Notify PCP owners of donation
Pages: [1]

Author Topic: Notify PCP owners of donation  (Read 364 times)

RachelWright

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 3
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.17
  • MySQL version: 5.5.37
  • PHP version: 5.4.26
Notify PCP owners of donation
January 08, 2013, 09:24:48 am
I'd like to work on a hook for notifying a PCP owner of a new donation.  I was wondering if someone could point me in the direction of the function that currently sends an email to the donor. I was hoping to use that as an example, or at least to get an idea of how the notifications emails get sent.

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: Notify PCP owners of donation
January 08, 2013, 10:01:46 am

since a PCP donation is just a normal contribution with a few extra bits of information, you should be able to implement the postProcess hook on the confirm page and send the email from there

The developer book and the hook reference page has a fair bit of info on the above hooks

please share your code when done, so others can benefit

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Notify PCP owners of donation

This forum was archived on 2017-11-26.