Bickey Posted March 3, 2011 Share Posted March 3, 2011 How do I include .$email to the mail function. this is my current code: mail($to, $subject, "", $headers); I want do it like this; mail("me@myweb.com".$email, $subject, "", $headers); Thanks Bickey. Quote Link to comment Share on other sites More sharing options...
btherl Posted March 3, 2011 Share Posted March 3, 2011 What is in $email? Quote Link to comment Share on other sites More sharing options...
devWhiz Posted March 3, 2011 Share Posted March 3, 2011 $email = "me@myweb.com"; Quote Link to comment Share on other sites More sharing options...
fife Posted March 3, 2011 Share Posted March 3, 2011 looks right to me. Here is one i use all the time { mail($userInfo['email'],"Validation Link From website","Dear ".$userInfo['username'].",\n\nThank you for signing bla bla bla");} Quote Link to comment Share on other sites More sharing options...
btherl Posted March 3, 2011 Share Posted March 3, 2011 How about this: mail($email, $subject, "", $headers); Do you want to send to one email address or two? 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.