lemmiwinksx
04-21-2003, 02:08 AM
hi, im new to php, and i want to write a simple email program:
<html>
<body>
<?
$to = "lemmiwinksx@lemmiwinksx.com";
$subject = "php is cool";
$body = "hello dylan";
$from = "cowsin@aol.com";
mail($to,$subject,$body,$from);
echo "mail was send to $to";
?>
</body>
</html>
it sends the mail, but it says from "webmaster@lemmiwinksx.com" instead of cowsin@aol.com
cowsin@aol.com comes as a link in the body, just above the mesage. is it supposed to do that?
thank you so much,
dylan
<html>
<body>
<?
$to = "lemmiwinksx@lemmiwinksx.com";
$subject = "php is cool";
$body = "hello dylan";
$from = "cowsin@aol.com";
mail($to,$subject,$body,$from);
echo "mail was send to $to";
?>
</body>
</html>
it sends the mail, but it says from "webmaster@lemmiwinksx.com" instead of cowsin@aol.com
cowsin@aol.com comes as a link in the body, just above the mesage. is it supposed to do that?
thank you so much,
dylan