MemphiS Posted January 23, 2008 Share Posted January 23, 2008 Ive just coded up a enquiry for my site and im wondering are there any other checks i need to do for the mail function. Currently i take exactly what the user writes in the textarea and send it straight to my email. <?php $text = addslashes(strip_tags($_POST['email'])); ..then the mail function etc.. ?> Is there anything else i should be checking for here? Link to comment https://forums.phpfreaks.com/topic/87334-solved-email-enquiry/ Share on other sites More sharing options...
pdkv2 Posted January 23, 2008 Share Posted January 23, 2008 Check for empty text, and use confirmation code to avoid spamming Link to comment https://forums.phpfreaks.com/topic/87334-solved-email-enquiry/#findComment-446695 Share on other sites More sharing options...
MemphiS Posted January 23, 2008 Author Share Posted January 23, 2008 Thanks for your responce.. Ive already got the checks for that.. Ive just been reading over google and my only insecure section is i need to check the headers for injection. Link to comment https://forums.phpfreaks.com/topic/87334-solved-email-enquiry/#findComment-446703 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.