Hello,
what function i need to use to make my input safe for sending it via e-mail?
In http://www.nyphp.org/phundamentals/email_header_injection.php i found:
function safe( $name ) {
return( str_ireplace(array( "\r", "\n", "%0a", "%0d", "Content-Type:", "bcc:","to:","cc:" ), "", $name ) );
}
Is it enough to do mail(safe($POST['email']), safe($POST['subject']), safe($_POST['message'])) ?
Thank's