What is the simplest way (or simplest library) to create a truly secure php mail() function?
        Posted  
        
            by Tchalvak
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Tchalvak
        
        
        
        Published on 2010-05-10T21:50:59Z
        Indexed on 
            2010/05/10
            21:54 UTC
        
        
        Read the original article
        Hit count: 283
        
The mail() function is bad, because it is so permissive with headers that you pretty much can't use it with any user input without subjecting yourself or others to spam. So what is the simplest substitute that can still ensure that it's use is secure?
Ideally something that can be included in an external file.
© Stack Overflow or respective owner