Results 1 to 2 of 2

Thread: Inbound email; Harvest info from subject

  1. #1
    cefladental's Avatar
    cefladental is offline Sugar Community Member
    Join Date
    Jan 2010
    Location
    Charlotte, NC
    Posts
    51

    Question Inbound email; Harvest info from subject

    I have inbound email setup to monitor a few email addresses that our phone system sends emails to when a VM is left.

    The email contains the usual subject, body, and a .WAV file as an attachment.

    In the subject line not only does the phone number show up but so does the caller ID. Does anyone know how I can strip out the phone number and use that data to automatically associate with a known contact or account in Sugar?

    Thanks!

    -Brett
    Brett Power

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Inbound email; Harvest info from subject

    Try setting up an after or before save logic hook that parses the subject line and extracts phone number. You should be able to do that via a regular expression. Within that same code you can then query the database to find the corresponding contact and link it.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 2008-12-04, 08:07 PM
  2. Replies: 16
    Last Post: 2008-08-11, 08:58 PM
  3. Change email subject
    By stheologo in forum Help
    Replies: 0
    Last Post: 2008-05-01, 05:02 PM
  4. Replies: 3
    Last Post: 2008-04-09, 11:59 AM
  5. email compose - set subject
    By waverider in forum Developer Help
    Replies: 2
    Last Post: 2008-04-04, 09:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •