How to use send mail by php code ?
1 10april New Member Messages 1 Reaction score 0 Points 0 Sep 14, 2009 #1 How to use send mail by php code ?
nexhunter New Member Messages 239 Reaction score 1 Points 0 Sep 14, 2009 #2 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: Sep 14, 2009
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.
xav0989 Community Public Relation Community Support Messages 4,467 Reaction score 95 Points 0 Sep 15, 2009 #3 You could also use a script such as PHPMailer : https://sourceforge.net/projects/phpmailer/