Mail issue
| From: | Carlos Chiossone | Date: | Wed, 12 Jul 2000 22:15:52 +0000 |
| Subject: | Mail issue | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-1052@lists.php.net to get a copy of this message | ||
Hi All, I can't get my PHP3 to send mail. I have changed the php.ini file to reflect my mail
server and email address.
and I am using this to test it, help what am I doing wrong?
if($send)
{
$destination = "carlos@sprout.net";
$type = "0";
$message = "kljlkadad jkajd kjkoadncioah";
$headers = "";
echo "3To: $destination <br>2type: $type <br>2message: $message<br>";
// mail($message,$type,$destination,$headers);
error_log($message,$type,$destination,$headers);
// error_log("You messed up!", 2, "127.0.0.1:7000","");
// mail($email,$subject,$message,$headers);
// mail("$To", "$Subject", "$Content");
// echo "eMail sent!<br>";
}
else
{
$To = "carlos@sprout.net";
$Subject = "php email - test";
$Content = "kljlkadad jkajd kjkoadncioah";
$headers = "";
echo "To: $To<br>Subject: $Subject<br>Content: $Content<br>";
?>
<form>
<input type="Submit" name="send" value="send">
</form>