graham23s Posted December 22, 2007 Share Posted December 22, 2007 Hi Guys, when a user egisters on my site i wanted an email also to be sent to myself i did this: $to = ($email,"graham23s@hotmail.com"); and $to = ("$email","graham23s@hotmail.com"); but both times i get an error: syntax error, unexpected ',' i thought that was a valid piece of code have i missed something out? cheers Graham Quote Link to comment Share on other sites More sharing options...
corillo181 Posted December 22, 2007 Share Posted December 22, 2007 $to = ($email,"graham23s@hotmail.com"); $to = ("$email","graham23s@hotmail.com"); why you have them inside ()? it's telling you that the comma doesn't belong outside the quotes. Quote Link to comment Share on other sites More sharing options...
graham23s Posted December 22, 2007 Author Share Posted December 22, 2007 doh thanks mate Quote Link to comment Share on other sites More sharing options...
Jessica Posted December 22, 2007 Share Posted December 22, 2007 You should use BCC or send two different emails, so they don't see your email address. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.