How to use send mail by php code ?

nexhunter

New Member
Messages
239
Reaction score
1
Points
0
here is a basic email sending script
http://us3.php.net/manual/en/function.mail.php

PHP:
<?php

//Your email
$to = "demo@demo.com";

//the subject
$subject = "mail function";

//the message
$message ="spam is bad so is canned spam";

//mail function
mail($to, $subject, $message)

?>


and as always their will be better ways to protect/send the emails than what I usually come up with.
 
Last edited:
Top