Results 1 to 5 of 5

Thread: email campaign

  1. #1
    ysh's Avatar
    ysh
    ysh is offline Sugar Community Member
    Join Date
    Apr 2009
    Location
    Nice, France
    Posts
    91

    Default email campaign

    Hi

    After toilling for two days over this issue, I hope someone can tell me where I'm going wrong.

    I set up the email using my host's email services (SMTP) and configured each user with email their corresponding parameters, and rely on Sugar's email service rather than on the system's default
    services.

    Manually speaking everything works. It's the scheduling part that doesn't.
    Cron is programmed to execute the cron.php every fifteen minutes.
    I believe that I got it to work once, or else it was one hell of a coincidence
    because I received a email at quarter past !

    If I click on 'Send Queued Campaign Emails' the emails are properly transmitted.
    The obvious culprit seems to be the scheduling - but my lack of experience might
    be clouding my assessment of the situation.

    Any ideas would be warmly received.

    Thanks

    yann
    JustHost Web Host / SCE 6.4.2 / MySQL 5.0.92 / Apache2 2.2.1.7 / php 5.2.17
    ____________________________________________
    www.azurtem.com - computer services - Nice, France

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: email campaign

    The SugarCRM scheduler must run every minute, so cron must be set up to run every minute.
    Sugar itself decides now which of the scheduler jobs will run.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    ysh's Avatar
    ysh
    ysh is offline Sugar Community Member
    Join Date
    Apr 2009
    Location
    Nice, France
    Posts
    91

    Default Re: email campaign

    thanks for your response.

    My WEB host indicated that due to their TOS I could run scheduled jobs every 15 mins.
    Will this prevent us from running Sugar's scheduled tasks ?

    I ran a "*/15 * * * * date > /tmp/cron.test.txt" to check whether cron was operationnal,
    and this file was correctly updated - each time - still holds true if I run "* * * * * date > /tmp/cron.test.txt"

    I did try to execute http://mySugarURL/cron.php but nothing visible happened and the email is still in the queue.

    cron.php has 644 perms.

    Tried: * * * * * cd /home/xxxxx/public_html/SCRM && php -f cron.php > /dev/null 2>&1
    but doesn't seem to have made any difference.

    Where in Sugar do we see whether the job was run, successful or not ?

    Just as a side note, clicking on the "send test" button has never had any visible effect.

    Thanks

    yann
    JustHost Web Host / SCE 6.4.2 / MySQL 5.0.92 / Apache2 2.2.1.7 / php 5.2.17
    ____________________________________________
    www.azurtem.com - computer services - Nice, France

  4. #4
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: email campaign

    OK; if you have that restriction that cron only runs every 15 minutes, then you must take care that this cron job is running on *:00, *:15, *:30 and *:45.
    Additionally you must set up your Sugar scheduler jobs with exactly these intervals.
    Sugar compares the minute values of the starttime with the minute values of the scheduler jobs.

    I would take a 664 for cron.php because I never know which idea was actually hip in the community of the deployed linux version. If 644 runs then it is ok too.

    In DB table schedulers_times you can see the timestamps of the schedulers. In status field there should be a completed, if not the associated scheduler will not run anymore. An "in progress" value prevents any further execution of some scheduler jobs.
    You can alway delete lines in schedulers_times.

    You see it is a wide area ( "ein weites Feld" in German ).
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  5. #5
    ysh's Avatar
    ysh
    ysh is offline Sugar Community Member
    Join Date
    Apr 2009
    Location
    Nice, France
    Posts
    91

    Default Re: email campaign

    Viel Danke Kuske

    Ok, thanks to your pointers I now understand how to monitor the scheduler's activities.
    Not only within the database table itself, but also directly from each scheduled job view screen
    in admin/scheduler.

    All jobs were working properly (completed).

    I modified the minutes at which [Check Inbound Mailboxes] and [Update tracker_sessions table] jobs execute
    from '*' to '*/15'. Although things were previously working properly using the default '*' for [Check Inbound Mailboxes].

    03/11/09
    I just came across a post by SugarCane in the following : http://www.sugarcrm.com/forums/showthread.php?t=53532
    sheds some light of course on why the repeated use, solely for testing purposes in the present case,
    of an existing campaign won't succeed ! Hmm the warm light shines again upon my face, and it's back under the bonnet I go.


    yann
    Last edited by ysh; 2009-11-03 at 03:43 PM.
    JustHost Web Host / SCE 6.4.2 / MySQL 5.0.92 / Apache2 2.2.1.7 / php 5.2.17
    ____________________________________________
    www.azurtem.com - computer services - Nice, France

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Half of emails from email campaign get stuck in email queue
    By Rezae in forum Marketing/Campaign Management
    Replies: 1
    Last Post: 2011-04-05, 05:54 AM
  2. Replies: 6
    Last Post: 2009-12-18, 02:31 AM
  3. Replies: 1
    Last Post: 2008-05-14, 08:29 AM
  4. Replies: 3
    Last Post: 2007-03-13, 02:43 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
  •