#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    3
    Rep Power
    0
    I have a page that includes a mail() function. It seems to wait for the message to be delivered rather than just putting it in the queue and moving on.

    php3.ini contains sendmail_path /usr/sbin/sendmail -odq

    sendmail starts at boot with sendmail -bd -q1h

    The function works (I get the email), but I have to wait 30 seconds or so for the mail to be delivered before the browser displays the page. I'd rather just put the email in a queue and have the server send it when it gets a chance.

    What am I doing wrong?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    31
    Rep Power
    15
    Try using sendmail -t (the default) in php3.ini
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    3
    Rep Power
    0
    I changed sendmail_path in /usr/local/lib/php3.ini to /usr/sbin/sendmail -t
    and restarted apache. It still waits instead of queueing.

    I see no difference between
    "sendmail_path ="
    "sendmail_path = /usr/sbin/sendmail -odq"
    and "sendmail_path = /usr/sbin/sendmail -t"

    phpinfo() shows "Sendmail Path to sendmail: /usr/sbin/sendmail -t"

    Are there other php variables from phpinfo() I should check out?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    31
    Rep Power
    15
    You could be facing some weird sendmail problem and I'm not a sendmail guru in any way (nor I want to be). You could try using postfix instead of sendmail and that's what I have been using so I can't say much about sendmail anyway.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    4
    Rep Power
    0
    any findings on this yet?
    i have 2 (RH6) linux, quite similarly configured (with apache/php3/mysql)
    one of them sends php mail almost instantenously, and the other one takes about 30 seconds

    i didn't change any sendmail setting, and both of them use default php.ini

    i suspect something else cause the problem...please let me know if you know what is it thanks...
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    3
    Rep Power
    0
    Nothing yet.
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    Den Laeghe Landen
    Posts
    107
    Rep Power
    15
    i've had exactly the same problem. (did a temporal solution with invocation of a perl-script)
    in case you find the answer, please post it here.

    ------------------
    --
    ...tiktak...tiktak...
    --
    ...Tommyknockers, Knocking On Your Door...

Similar Threads

  1. free hosting allow mail() function
    By playboy in forum Free Web Hosting
    Replies: 8
    Last Post: June 27th, 2005, 06:53 PM
  2. Uploading Files
    By vivekjain in forum ASP Programming
    Replies: 0
    Last Post: February 17th, 2004, 12:21 AM
  3. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 07:55 AM
  4. mail() function dropping characters
    By Webbywarehouse in forum PHP Development
    Replies: 2
    Last Post: January 28th, 2004, 02:42 PM
  5. mail function smtp problem
    By emzyme in forum PHP Development
    Replies: 3
    Last Post: January 25th, 2004, 07:59 PM

IMN logo majestic logo threadwatch logo seochat tools logo