Uh, even if it "works," as patrick pointed out your code is woefully insecure. I can speak from experience that insecure email scripts *will* bite you in the rear sooner or later. http://www.securephpwiki.com/index.php/Email_Injection -- Max Schwanekamp http://www.neptunewebworks.com/