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 can i send reciept mail from drupal module
Pages: [1]

Author Topic: how can i send reciept mail from drupal module  (Read 1200 times)

rampkrm

  • Guest
how can i send reciept mail from drupal module
July 23, 2008, 06:45:48 am
i am developing a drupal module which search for contacts contributions and send the reciept of the contributions again.

My question
how can i send contribution reciept?
is there any api method?

if we need to write some code, can you give some idea how can i start.

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: how can i send reciept mail from drupal module
July 23, 2008, 03:37:28 pm

There is no api to do this, however there is a function which does a lot of the work

check:

CRM/Core/Payment/BaseIPN.php, function sendMail
CRM/Contribute/Form/Task/PDF.php, function postProcess (where we use the sendMail function to generate a PDF receipt)

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

rampkrm

  • Guest
Re: how can i send reciept mail from drupal module
July 24, 2008, 04:58:21 am
i tried to manage using the send mail function in BaseIpn.php file. but i got strucked in how to get reciept from email and reciept from name. I was trying to use CRM_Utils_Array::value but not succeeded. i hope you can show some way to get the valules

thanks in advance
Ram


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: how can i send reciept mail from drupal module
July 24, 2008, 12:10:41 pm

I'm not sure what you mean exactly. Might be better to ask these questions on IRC.

Your best bet might be to install v2.1 from svn and trace the code for generating a contribtion PDF receipt (which reuses the sendMail function)

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 CiviMail (Moderator: Piotr Szotkowski) »
  • how can i send reciept mail from drupal module

This forum was archived on 2017-11-26.