Page 1 of 4 1234 LastLast
Results 1 to 10 of 32

Thread: Send Email Alerts for Tasks Due

  1. #1
    umutbesler is offline Junior Member
    Join Date
    Feb 2008
    Posts
    1

    Default Send Email Alerts for Tasks Due

    Hi,

    is there any option that sent an email alert messages for tasks due today.

    I searched the software and forum but couldn't find any usefull information about this.

    I want my sugar sends me alerts for due tasks.

    Thanks

  2. #2
    jli
    jli is offline Junior Member
    Join Date
    May 2005
    Posts
    109

    Default Re: Send Email Alerts for Tasks Due

    this can most likely be done by creating a time based workflow

  3. #3
    jke
    jke is offline Junior Member
    Join Date
    Jul 2007
    Posts
    1

    Default Re: Send Email Alerts for Tasks Due

    Hi,

    have you solved that problem? If so, could you post the solution.
    A few threads exist in here with the same questions, but nobdy has posted a
    solution.

    That it can be solved with the worklow module really does not help.

    THX,
    Jens

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,491

    Default Re: Send Email Alerts for Tasks Due

    Hi, all.

    I believe if the flavor is CE the workflow is not available.
    So you can create a new scheduled job for doing it.
    If you has Linux or something like that you can configure the cron for trigger the cron.php in the root of you SugarCRM installation.
    If you use Windows you can configure the Scheduled tasks for trigger the same cron.php.

    What you could do:

    1. Edit the file modules/Schedulers/_AddJobsHere.php and add a new entry into $job_strings array, in the end of this script, like:

    PHP Code:
    $job_strings[] = 'runTasksDueToday'
    After that create this function:

    PHP Code:
    function runTasksDueToday() {
        if (!
    class_exists('LoggerManager')){
            require(
    'log4php/LoggerManager.php');
        }
        
    $GLOBALS['log'] = LoggerManager::getLogger('emailmandelivery');
        
    $GLOBALS['log']->debug('Called:runMassEmailCampaign');

        if (!
    class_exists('PearDatabase')){
            require(
    'include/database/PearDatabase.php');
        }
        require_once(
    'include/utils.php');
        global 
    $beanList;
        global 
    $beanFiles;
        require(
    "config.php");
        require(
    'include/modules.php');
        if(!
    class_exists('AclController')) {
            require(
    'modules/ACL/ACLController.php');
        }

        require(
    'modules/Tasks/TasksDueToday.php');
        return 
    true;

    After that, create this script: modules/Tasks/TasksDueToday.php, which can select all tasks due today and send their link to someone.

    Cheers

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  5. #5
    pinzosalvatore is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    25

    Default Re: Send Email Alerts for Tasks Due

    Oh very interesting.

    But What do i have to write in TaskDueToday.php??

    any ideas??????????

    thanks!

  6. #6
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,491

    Default Re: Send Email Alerts for Tasks Due

    Just here: modules/Tasks/TasksDueToday.php

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  7. #7
    darksultan is offline Junior Member
    Join Date
    Jul 2009
    Posts
    2

    Default Re: Send Email Alerts for Tasks Due

    Adopes,
    But what should be INSIDE the modules/Tasks/TasksDueToday.php file?
    It should just be blank?

  8. #8
    agdoudou is offline Senior Member
    Join Date
    Jun 2008
    Posts
    42

    Default Re: Send Email Alerts for Tasks Due

    Hi every body,

    Could anyone help with what we can put in the "Taskduetoday.php"?
    Thanks a lot!

  9. #9
    conankun is offline Junior Member
    Join Date
    Aug 2009
    Posts
    2

    Default Re: Send Email Alerts for Tasks Due

    Hi all,

    same here, can you shed some light on what should be inside TasksDueToday.php? I had a look at TasksQuickCreate.php as an example, but it's very difficult to follow and it doesn't look like what I actually need as well.

    Cheers,
    HC

  10. #10
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,491

    Default Re: Send Email Alerts for Tasks Due

    Quote Originally Posted by agdoudou View Post
    Hi every body,

    Could anyone help with what we can put in the "Taskduetoday.php"?
    Thanks a lot!
    The Taskduetoday.php script should:
    1. Set a sql query to retrieve the tasks whose date_due is today;
    2. Send an email for each assigned user.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Page 1 of 4 1234 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HOW-TO guide for Email Campaigns.
    By agupta in forum Marketing/Campaign Management
    Replies: 154
    Last Post: 2013-12-20, 07:09 AM
  2. email marketing feature requests
    By maxsutter in forum Feature Requests
    Replies: 1
    Last Post: 2008-10-11, 10:19 AM
  3. Replies: 2
    Last Post: 2007-03-16, 10:47 PM
  4. Replies: 0
    Last Post: 2006-11-06, 11:40 AM
  5. Replies: 4
    Last Post: 2006-04-08, 06:11 PM

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
  •