Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-12-2004, 01:25 AM   #1
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Rep: Reputation: 30
PHP and sendmail not being friendly

In a php script when I try to call mail(), the script hangs in the browser for like two minutes, does't throw any errors, and no email gets sent.

This is how I call it:

mail("", "wohoo", "I rule", "From:\"You\" <\"\">\n");

In my php.ini file I have:

sendmail_path = /usr/sbin/sendmail -t -i

and yes, that's the correct path to sendmail.

I've done some searches on this forum and some of the advice (on similar but not quite the same problems) says to change But when I open it says near the top:

"DO NOT EDIT THIS FILE! Only edit the source .mc file."

I installed sendmail using Mandrake's package manager. (Mandrake 9.2). I've made no changes to sendmail's config at all since installing it (maybe that's the problem). I only need sendmail to work for sending mail from PHP, not recieving mail.

What do I have to do to make sendmail work?
and: How do I test to see if sendmail is working? Like can I run it from commandline? I tried this : But what happened was, the "." didn't end it, it was still taking more input.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 02:19 PM
PHP and sendmail lost@sea Linux - Software 5 09-21-2005 10:16 AM
php sendmail... HELP! Doug86 Linux - Newbie 3 07-29-2005 10:09 AM
suggestions for friendly PHP IDE? Moebius Linux - Software 1 10-21-2004 06:49 AM
Sendmail and PHP Aldyn Linux - Newbie 0 06-02-2003 11:48 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration