Can you use mail() in PHP without creating an unsecure, open mail relay?
December 28, 2005 4:30 PM
Subscribe
Can you use mail() in PHP without creating an unsecure, open mail relay boon to spammers everywhere? I keep trying to read
This Page, and I think I understand it, but I'm not sure.
Like I said, I think I understand the problem, but I don't feel confident in my abilities to reasonably evaluate all the many solutions I've found. I've read through
This Recent Related Question.
Would somebody that really knows there stuff tell me if passing anything that will go into mail() through
this function would be enough to clean it? Most scripts I've seen are blocking \r and \n. I don't see anybody blocking "%0A" or other hexadecimal equivalents to line breaks. Is that because users can't use those to inject headers or because none of the forms I'm seeing are really secure?
posted by willnot to computers & internet (9 comments total)
posted by delmoi at 4:47 PM on December 28, 2005