Pages

ANONYMOUS EMAIL OR SPOOF EMAIL SCRIPT

Sending Anonymous Mail in PHP


$from_name = "Mr. Anonymous";
$from_email = "mr.anonymous@sender-domain.com";
$to_email = "zahid@somedomain.com";
$subject = "Mail Subject";
$message = "Your text goes here....";

$headers = "From: ".$from_name." <".$from_email.">\r\n";
$headers .= "Reply-To: ".$from_email."\r\n";

mail($to_email, $subject, $message, $headers, "-f".$from_email);

echo "Mail Sent!";

?>

0 comments: