PHP Snippets
Name:mail Function Example
Description: Here's an easy example of mail() function.
Code below...
>
<?php
//Recipient Email Address
$email = "hisheremail@somewhere.com";
//Subject
$subject = "This is my subject";
//Your Message
$message = "Hey what's up, this is my message";
//Mail it using mail() function =)
mail($email,$subject,$message,FROM: Me);
?>
//Recipient Email Address
$email = "hisheremail@somewhere.com";
//Subject
$subject = "This is my subject";
//Your Message
$message = "Hey what's up, this is my message";
//Mail it using mail() function =)
mail($email,$subject,$message,FROM: Me);
?>