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("[email protected]".$email, $subject, "", $headers); Thanks Bickey. Quote Link to comment https://forums.phpfreaks.com/topic/229453-mail-function/ 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 https://forums.phpfreaks.com/topic/229453-mail-function/#findComment-1182212 Share on other sites More sharing options...
devWhiz Posted March 3, 2011 Share Posted March 3, 2011 $email = "[email protected]"; Quote Link to comment https://forums.phpfreaks.com/topic/229453-mail-function/#findComment-1182230 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 https://forums.phpfreaks.com/topic/229453-mail-function/#findComment-1182331 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 https://forums.phpfreaks.com/topic/229453-mail-function/#findComment-1182517 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.