I use it on Godaddy although there are plenty of suggestions to say you can't because of spammers, but, here's my mail script that does work and it's very simple.
/**
* @author
[email protected] * @copyright 2009
*/
//
$email = "
[email protected]";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "From:
[email protected]" . "\r\n";
$headers .= "Reply-To:
[email protected]" . "\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();
$subject = "Subject line goes here";
$message= "Hello "
."This is a test email"
."Goodbye";
if($send_contact = mail($email,$subject,$mess
age,$heade
rs)
){
echo "Mail sent to ".$email;
}else{
echo "Failed to send email";
}
?>
// just change the email addresses obviously and it should send just fine
//You may also wish to add some more headers for functionality like for eg:
$headers .= "Cc: \r\n";
$headers .= "Bcc: \r\n";