|
WDF Staff
Join Date: April 2004
Location: Cottage Grove, Minnesota
Posts: 3,359
|
The restriction to email only by account hosted is a function of the webhost.
If Dataflame has that limitation (like GoDaddy), you won't be able to do it with PHP either.
You can test it out though ...
Copy and paste this script as "email.php", and try different recipients ... see what happens:
PHP Code:
<?php
$recipient = "youremailaddress@aol.com";
$subject = "This is an email test";
$sender = "whosenttheemail@aol.com";
$content="This is a test to see if you can send an email to anyone.";
$message = "
This is an email test
--------------------------------------------------
Email from: $sender
$content
---------------------------------------------------
";
$extraheaders = "From: $sender\nReply-To: $sender\n\n";
if (! mail($recipient, $subject, $message, $extraheaders))
echo "Mail did not send for some reason.";
echo "Email Sent";
?>
|