Results 1 to 7 of 7

Thread: Campaign emails not sending automatically

  1. #1
    kevinp is offline Junior Member
    Join Date
    Sep 2008
    Posts
    2

    Question Campaign emails not sending automatically

    I have been struggling for weeks with campaign emails. It seems to work with small campaigns but I am trying to send out to about 28000 contacts and targets. Most of the emails are "stuck" in the queue and only get sent out in small batches when I manually click the "Send Queued Campaign Emails" button under "Manage Email Queue". It sends out as many emails at a time as set in "Campaign Email Settings". The scheduler is set to run every minute and cron.php is also scheduled to execute every minute. I have read many threads and followed the ideas given but I am having no success at all.

    My setup is as follows
    Windows XP SP 3
    Sugar Community Edition 5.0.0.g
    MS IIS V5.1
    PHP V5
    MS SQL Express

    So if anyone can shed any light on the above...

    Thanks


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

    Default Re: Campaign emails not sending automatically

    What are you using - sendmail or smtp? I guess the latter because you are on Windows. Did you try with another smtp provider? Sometimes the guys block larger batches. Does the scheduler really run? Do you see an execution every minute?
    These are stupid questions maybe but a remote diagnosis is very hard.

    rgds
    __________________________
    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
    kevinp is offline Junior Member
    Join Date
    Sep 2008
    Posts
    2

    Default Re: Campaign emails not sending automatically

    Thanks for responding.
    Yes, I am using SMTP because as you say Sendmail + Windows does not work.
    I have tried more than 1 SMTP provider.
    I see the cron.php execute every minute so I assume the scheduler is really running.
    What helps confuse me is that the mails don't go out automatically but in dribs and drabs when I click the button to manually send them.

    There's no such thing as a stupid question - I hope!

  4. #4
    abeucher is offline Junior Member
    Join Date
    Oct 2008
    Posts
    4

    Default Re: Campaign emails not sending automatically

    Hello,
    I have the same problem... My campaign works properly when I send batch manually, but when i configure the scheduler (each hour) + crontab (each hour) : nothing.
    I test the server : The file cron.php properly runs each hour. It's ok.

    I don't find any response in sugarcrmforum. The only element I found is : scheduler don't work on the communauty version ... Is-it right ?

    My configuration
    Sugarcrm 5.0 communauty version
    linux server - php 5 - mysql4/5


    thanks for your help too !

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

    Default Re: Campaign emails not sending automatically

    Seems to be a timing problem...

    Others had the same problem.
    IN the last campaign I set the sendmail to 15 mails per batch and run every minute and it worked fine.
    But for 28000 contacs this takes a long time...
    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


  6. #6
    abeucher is offline Junior Member
    Join Date
    Oct 2008
    Posts
    4

    Default Re: Campaign emails not sending automatically

    To test, I set the sendmail to 1 mails per batch. with a schedule and a cron each hour.
    nothing at all !


    ps : the timing between the scheduler and the crontab shoud be the same ?

  7. #7
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Campaign emails not sending automatically

    Quote Originally Posted by abeucher
    Hello,
    I have the same problem... My campaign works properly when I send batch manually, but when i configure the scheduler (each hour) + crontab (each hour) : nothing.
    I test the server : The file cron.php properly runs each hour. It's ok.

    I don't find any response in sugarcrmforum. The only element I found is : scheduler don't work on the communauty version ... Is-it right ?

    My configuration
    Sugarcrm 5.0 communauty version
    linux server - php 5 - mysql4/5


    thanks for your help too !
    The scheduler code in Sugar Community Edition is the exact same as the scheduler code in Sugar Professional.

    I think I know what you are running into. cron.php needs to write a lock file to the cache when it runs. If it can't run that file, it will write an error to sugarcrm.log and complete without executing your schedulers.

    Check your sugarcrm.log file. Do you see an error "Scheduler cannot write PID file. Please check permissions on cache/modules/Schedulers"?

    If so, then you have a file permissions issue and cron.php won't run. You need to change permissions so that the user your web server is running under can create that directory and write files to that directory.
    Last edited by clint; 2008-10-09 at 09:22 PM.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HOW-TO guide for Email Campaigns.
    By agupta in forum Marketing/Campaign Management
    Replies: 146
    Last Post: 2012-01-31, 03:08 PM
  2. Outbound campaign emails not sending
    By tmelcher in forum Help
    Replies: 60
    Last Post: 2010-05-14, 01:34 PM
  3. Working with campaings
    By lopes80andre in forum Marketing/Campaign Management
    Replies: 2
    Last Post: 2008-05-16, 07:43 AM
  4. SugarSuite 4.0 - New Campaign management
    By manoj in forum Feature Requests
    Replies: 2
    Last Post: 2007-11-23, 10:13 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
  •