Microsoft
Software
Hardware
Network
Question : LINUX -- PHP + Sendmail Woes -- Emails not being sent.
Okay, so I have php sendmail, I can send mail through the console like putty using /usr/sbin/sendmail
[email protected]
and it will get through just fine.
However, I cannot get this working in PHP!
My config is rather simple: sendmail_path = /usr/sbin/sendmail
My php test script is:
<?php
$to = "
[email protected]
";
$subject = "Testing..";
$message = "testing email!!!";
$headers = 'From:
[email protected]
o.com' . "\r\n" .
'Reply-To:
[email protected]
o.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
When I get emails from the putty console, they are using '
[email protected]
to.com' so I have used this email as well for tests now for php. So I think sendmail is correct since it sends without going through PHP... but PHP settings are not.
Anyone have any ideas what I am missing? There is 'no' domain linked to this, just wanted a basic sendmail for small issues that my other php scripts might experience, and the firewall is shut off for now.
Answer : LINUX -- PHP + Sendmail Woes -- Emails not being sent.
Do yourself a favor and forget the mail() function even exists. Try using the pear mail package.
http://pear.php.net/packag
e/mail/
Random Solutions
tell if an item value has changed
How can I get WIndows Fax And Scan to resend to busy numbers?
Cpanel bcked up mails
Overclock my Phenom II X4 945 Processor
using one procedure with for parameteres to open forms
How do I stop my fonts from shrinking. Is it a css zoom issue?
Access Open Form Problem
How do I retain the parameters in a URL ASP.NET / Visual Studio
Unable to move tasks from one folder to another
Foreign key on same table