Menu
I’m about to write some code to implement the “mail()” function.
However, I’ve heard some horror stories about hackers hijacking this function and using it for spam mail.
[code=php]
$recipient = $email;
$subject = “My Subject”;
$msg = “My Message”;
$mailheaders = “From: <[email protected]>”;
include(“include_mail.php”);
// mail($recipient, $subject, $msg, $mailheaders);
[code=php]
//include_mail.php
mail($recipient, $subject, $msg, $mailheaders);
This is the working code I’ve been using.
Is there any kind of extra security precautions that I should be aware of?
Thanks in advance
ano