I can't get this to work using Method 1. The sc_show function is entered (verified with an echo debug statement), but it seems the add_hooks functions don't have any effect.
However, Method 2 does work.
As a user, I quite like getting a copy of the email. You can implement this very easily by copying the mail() function call to the line below and changing the To parameter to "To: " . _POST['sc_email'].
A quick question. Does PHP's mail() function protect against header injections such as CC: and BC: ? I'd hate for my site to become a spam proxy. Actually, more to the point, my hosting company would hate it and they would visit their wrath on me.
However, Method 2 does work.
As a user, I quite like getting a copy of the email. You can implement this very easily by copying the mail() function call to the line below and changing the To parameter to "To: " . _POST['sc_email'].
A quick question. Does PHP's mail() function protect against header injections such as CC: and BC: ? I'd hate for my site to become a spam proxy. Actually, more to the point, my hosting company would hate it and they would visit their wrath on me.
My blog: http://www.nickcoleman.org/blog