Forum Moderators: coopster

Message Too Old, No Replies

secure (from spammers) mail() script

email script to send to external domains

         

mattclayb

4:55 pm on Jun 14, 2007 (gmt 0)

10+ Year Member



Hi,

Does anybody have examples of a secure mail script using the local mail() function in php.

I want to write a script that can send email out to external domains that can contain html and text alternative, but is also secure from spammers.

I have written many mail functions in the past, just not to external domains that are spam resistant.

Thanks,

eelixduppy

8:24 pm on Jun 14, 2007 (gmt 0)



Here's a great article on email injection [securephpwiki.com]. As for some functions that you might be interested in: strip_tags [php.net], preg_replace [php.net].