Results 1 to 3 of 3

Thread: Auto reply uses sendmail

  1. #1
    ecarey is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    11

    Default Auto reply uses sendmail

    Hi,

    I am having an issue where the auto reply functionality insists on using sendmail even though I have configured sugarcrm to use SMTP every where. In the inbound mail user account I have it set to SMTP and in the email settings. Despite this it still tries to use sendmail. All my users can send and receive email in their own right just the auto reply fails.

    This is a fresh install of 4.5.1 running with PHP4 and MySQL5 db all on windows. As you can see from the log below it does try and send the mail.

    7/05/07 12:40:56,599 [9572] DEBUG SugarCRM - Localization: translating [ Your request has been received. ] into ISO-8859-1
    07/05/07 12:40:56,615 [9572] FATAL SugarCRM - SugarPHPMailer encountered an error: Could not execute: /usr/sbin/sendmail
    07/05/07 12:40:56,615 [9572] FATAL SugarCRM - Error emailing:Could not execute: /usr/sbin/sendmail

    07/05/07 12:40:56,615 [9572] INFO SugarCRM - Query:INSERT INTO inbound_email_autoreply (id, deleted, date_entered, date_modified, autoreplied_to) VALUES (

    Any advice would be appreciated.

    Thanks
    Eamonn…

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Auto reply uses sendmail

    Hi ecarey,

    It looks like the $mailer isn't being set to your smtp preferences and is using the default in SugarPHPMailer. To change the default open include/SugarPHPMailer.php and change
    $this->Mailer = 'sendmail';
    to:
    $this->Mailer = 'smtp';

    You may also need to set your SMTP settings in include/phpmailer/class.phpmailer.php as well.

    Good luck!

  3. #3
    ecarey is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    11

    Default Re: Auto reply uses sendmail

    Hi Eggsurplus,

    Thanks for the reply. I made those changes but they did not resolve the issue however I think I may have isolated the issue a bit more. It only fails to send an auto-reply email when the inbound email is imported using the scheduler. If I switch off the scheduler and click the "check mail" button then the mail will arrive and the auto-reply will be sent but if I revert to scheduler then it reverts to using sendmail.

    I should also highlight a nuance of my install. I am running on a hosted solution so I cannot schedule a batch file to call …..\php.exe -f cron.php. Instead I use a facility the hosting provider offers of a web scheduler which calls [my site]\cron.php.

    Thanks again
    Eamonn…

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Auto reply and outbound email
    By ecarey in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-07-05, 12:25 PM
  2. Auto reply with sender's subject
    By Pixster in forum Help
    Replies: 0
    Last Post: 2007-06-04, 09:16 PM
  3. Auto reply to new "Lead"
    By tomed in forum General Discussion
    Replies: 3
    Last Post: 2006-04-09, 07:13 AM
  4. Urgent: Auto reply to new "Lead"??
    By tomed in forum Help
    Replies: 0
    Last Post: 2005-11-09, 02:20 PM
  5. Auto reply to new "Lead"
    By tomed in forum Help
    Replies: 0
    Last Post: 2005-11-04, 02:50 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
  •