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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Email Script to update Contact Record??
Pages: [1]

Author Topic: Email Script to update Contact Record??  (Read 2272 times)

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Email Script to update Contact Record??
July 31, 2007, 10:07:22 am
I was going to work on this but wanted to see if anyone else may have done it?
The goal is this.
When people use say Thunderbird to send an email to a contact HOW can I make this mark the CiviCRM record for that contact as being sent an email?
My plan is
Using procmail the user puts in the BCC field track@ourdomain.com this way not all email are tracked since that would be too much.
Then when postfix/procmail see the bcc track@ourdomain.com it runs it through a script which would run a php script that would add this to the CiviCRM based on the contacts email address that matches this email.
Any thoughts?
Al

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Email Script to update Contact Record??
July 31, 2007, 11:56:37 am
Al - You might want to check in with Dave Neary after reading his post about working on Thunderbird integration:
http://www.nabble.com/Re%3A-Outlook-integration-%28from-digest%29-tf2918346s15986.html#a9183556

... also would be good to repost on the civicrm-dev mailing list as some developers who don't follow the forum threads might see it and respond.
Protect your investment in CiviCRM by  becoming a Member!

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: Email Script to update Contact Record??
July 31, 2007, 01:05:58 pm
I posted it on the developers list too.
I guess my approach is a bit more simple since it is dealing with a few procmail php scripts
Here are some more notes
-----------------
I have seen this posted in a couple of places.
Just wondering why not just use procmail to run a phpscript based say BCC field.
For example ie BCC is track@mydomain.com then
take the email To: address and find that in the civicrm contact list then update that contact as "Email Sent to them" and use the From address to not who sent it etc.
Or the BCC could be add@mydomain.com then it would add the Contact based on the To: and Name based on the email address area Bob Smith<bob@place.com>
The use the LDAP setup to pull in the contacts into Thunderbird etc.
Just wondering if I am being short sighted here?
Thanks
Al---------------------

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: Email Script to update Contact Record??
July 31, 2007, 01:15:46 pm

I think the below approach is fine and potentially easier to implement. Using tools like procmail make the task much easier.

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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Email Script to update Contact Record??

This forum was archived on 2017-11-26.