Code: Select all
<?
$mail_addy="mail@adres";
$headers = "To: $mail_addy\r\n";
$subject = "Test bericht";
$msg = "Dit is een test bericht\nFoo foo\nbar quux!";
$ret = mail($mail_addy,$subject,$msg,$headers);
if($ret) {
echo "Mail is verstuurd!";
} else {
echo "Mail is NIET verstuurd!";
}
?>
I can send mail through the command-line and also when i use the PEAR mailclasses and send directly with Sendmail the messages are sent and in mail.log it says 'nrcpts=1'.
What can be the problem that i can't send mail through the normal php-way?