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 (Moderator: Donald Lobo) »
  • Sending email when saving a custom civicrm activity
Pages: [1]

Author Topic: Sending email when saving a custom civicrm activity  (Read 1169 times)

taram

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
Sending email when saving a custom civicrm activity
October 06, 2008, 08:51:00 pm
Hello, I started using civicrm recently and have a question regarding activities:

We added a few custom activities through civicrm administrator and would like to send an email when this activity is saved.
1. Is it okay to modify code under civicrm to achieve this functionality? (civicrm/CRM/activity/Form/Activity.php->postProcess)
2. Can I use sendEmail function from civicrm/CRM/activity/BAO/Activity.php?
3. I also see that every time an email is sent, an activity automatically gets created. Since I want to send an email from activity save, I don't want another activity to be created. Is there an alternative api that I can use to only send an email?

Thanks in advance for your help.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Sending email when saving a custom civicrm activity

This forum was archived on 2017-11-26.