Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nu11secur1ty
GitHub Repository: nu11secur1ty/Kali-Linux
Path: blob/master/Postfix-Dovecot-fake-email/fakemail.php
1303 views
1
<?php
2
ini_set( 'display_errors', 1 );
3
error_reporting( E_ALL );
4
$from = "[email protected]";
5
$to = "[email protected]";
6
$subject = "PHP Mail Test script";
7
$message = "This is a test to check the PHP Mail functionality";
8
$headers = "From:" . $from;
9
mail($to,$subject,$message, $headers);
10
echo "Test email sent\n";
11
?>
12
13