views:

30

answers:

1

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.

+2  A: 

http://swiftmailer.org/ seems to be the most popular PHP OO solution currently

Mark
That will work.
Tchalvak