Question : GoDaddy PHP Mail Script

Using GoDaddy Windows Hosting.  Do I HAVE to use their asp/php mail scripts?  http://help.godaddy.com/article/512#gdform

Has anyone got a custom asp or php mailer that they are using on GoDaddy with Windows hosting?  Thanks.

I can't even find the php and asp files provided by GoDaddy even though I "reinstalled" them.

Answer : GoDaddy PHP Mail Script

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,$message,$headers)
){
      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";

Random Solutions  
 
programming4us programming4us