LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-12-2004, 12:25 AM   #1
Rotwang
Member
 
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("me@mydom.com", "wohoo", "I rule", "From:\"You\" <\"you@yourcompany.com\">\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 sendmail.cf. But when I open sendmail.cf 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.

So:
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 : http://tinyurl.com/3ygk4 But what happened was, the "." didn't end it, it was still taking more input.
 
  


Reply



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 01:19 PM
PHP and sendmail lost@sea Linux - Software 5 09-21-2005 09:16 AM
php sendmail... HELP! Doug86 Linux - Newbie 3 07-29-2005 09:09 AM
suggestions for friendly PHP IDE? Moebius Linux - Software 1 10-21-2004 05:49 AM
Sendmail and PHP Aldyn Linux - Newbie 0 06-02-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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