Dear All,

I put the code like this :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
 <title>Email</title>
</head>

<body bgcolor="FEEBCC" link="#800000" vlink="#800000"" leftmargin="0"
topmargin="0" marginheight="0" marginwidth="0">
<?php
      $to = '[EMAIL PROTECTED]';
      $from = '[EMAIL PROTECTED]';
      $body = " Hello World\r\n";
      $headers = "From: $from\r\n";
      $headers .= "Reply-To: $from\r\n";
      $success = mail($to, "Posted " . date("m/d/Y"), $body, $headers);
      if
uccess){ 
          echo "<B><CENTER>Thank you for your input</CENTER></B>\n"; 
      } 
      else{ 
          echo "Error \n"; 
      } 
?>



</body>
</html>

I've try to put this code to another server and it's work.
I really lost to figure out what's wrong with my configuration (I'm new in PHP too..)

Thanks for all answer ...

regards,

Atet



>it would help if you showed a snippet of your mail code
>----- Original Message -----
>From: "Atet Sugiharto" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Saturday, March 24, 2001 1:49 AM
>Subject: [PHP] Sendmail
>
>
>> Hi ,
>>
>> I'm at a loss....I've searched throught the knowledgebase, archives, docs,
>> etc but I can't figure out what's going on.  The problem is when using the
>> mail() function nothing gets send and I don't get any error messages
>either.
>> It's like the message gets eaten by a black hole.
>>
>> I already put "-t -i" in the path, but still doesn't work ..
>> Anybody can help me ?
>>
>> Regards,
>>
>> Atet Sugiharto
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to