Results 1 to 8 of 8

Thread: automatically import emails

  1. #1
    riprod is offline Senior Member
    Join Date
    Nov 2008
    Posts
    20

    Default automatically import emails

    I setup the mail using IMAP and can read and import the individual mails.

    Is there a way that the system can automatically pickup emails from a certain email address and apply it to the account or contact or do I have to do it manually with every mail ?

    thanks

  2. #2
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: automatically import emails

    Not in the CE version. With Pro/Ent you may create a workflow.
    But register a feature request - it's indeed not clear why certain "trusted" senders shouldn't be assigned automatically
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  3. #3
    riprod is offline Senior Member
    Join Date
    Nov 2008
    Posts
    20

    Default Re: automatically import emails

    I saw this blog about automatically importing email :
    http://developers.sugarcrm.com/wordp...mail-in-sugar/

    It says to create a group account, which I did. I then assigned it to a group folder, which shows up in the email box.

    But when I click on it, there is no mail in it.
    Is this because it does not work on the CE edition ?

    It also mentions something about adding a line of code to crontab. But I have no idea what that is or where to find it. What is crontab ? How do I edit it.

    Can anyone let me know why no mail is showing up in the group box ? thanks

  4. #4
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: automatically import emails

    two questions asked, one I answered above (no auto assignment). The other is more complicated because there are certain requirements:

    1. Your group email account must be configured correctly (ssl if necessary, correct ports)
    2. You must set up the scheduler in order to check for mail in certain intervals (make sure you have some entries under execution once you set it up)
    3. You must set up a crontab (the line at the bottom of the scheduler) to tell the server that it should pick up the mails from wherever (assuming you use an ix system). If you use a Windows server - pls. check somewhere else here.

    Even if all three components are set up correctly your mail won't show under the group folder but under "My Emails".

    It's friggin complicated and not logical at all but that's what it is.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  5. #5
    riprod is offline Senior Member
    Join Date
    Nov 2008
    Posts
    20

    Default Re: automatically import emails

    Thanks for the info but I think I found some solutions that do work.

    If I setup a group account and make it POP (does not seam to work with IMAP!). Then assign a group folder.
    The mail does show up in the group folder and it does automatically assign it to the correct account based on the email address.
    So Auto Assignment does appear to work in the CE version.

    So far so good...

    However my last problem is that the scheduler is not working to check mail automatically. I need to browse to the cron.php file for it to check mail.

    Sugar is running on Mac OS X server and I have added the line to crontab. If I go to terminal and type crontab -l, it does show the new line of code but it obviously not running. Anyone know how to check on the server to see that crontab is running correctly ?

    I think that maybe the path in the line of code (* * * * * cd /Library/WebServer/Documents/sugar; php -f cron.php > /dev/null 2>&1) is incorrect on the mac ?? Any ideas ?

  6. #6
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: automatically import emails

    Interesting, auto-assignment is new to me, never worked here. Will test.
    [edit] it does work. My mistake. My group accounts are used for auto answer and bounce handling and then it does not as it seems.
    Re. cron job: might be that the php command needs a path, happens sometimes. The path to Sugar is easy to check but most probably correct if you didn't move the Sugar folder.
    Last edited by roblaus; 2008-11-09 at 09:28 PM.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  7. #7
    riprod is offline Senior Member
    Join Date
    Nov 2008
    Posts
    20

    Default Re: automatically import emails

    ok, I seam to have got it to work. Basically I changed the crontab to :

    * * * * * curl http://localhost:8080/sugarsrm/cron.php

    I'm not sure if that is right but it works and is now checking and assigning emails fully automated.

  8. #8
    riprod is offline Senior Member
    Join Date
    Nov 2008
    Posts
    20

    Default Re: automatically import emails

    I must have done something wrong. It has now imported 128000 emails which is completely wrong. I don't have more than 1000 mails in there. I think it is importing the entire batch every time. Actually I don't have a clue what it is doing....

    Any idea ?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Inbound emails: (automated) import
    By uwe in forum Help
    Replies: 15
    Last Post: 2008-11-26, 10:41 AM
  2. Replies: 6
    Last Post: 2008-10-09, 09:13 PM
  3. Duplicate Group Emails on Import
    By mild in forum Help
    Replies: 0
    Last Post: 2008-05-30, 08:20 AM
  4. Automatically linking incoming emails to accounts
    By george_bbch in forum Feature Requests
    Replies: 6
    Last Post: 2007-12-12, 09:32 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
  •