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. 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? 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]"; 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");} 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? Link to comment https://forums.phpfreaks.com/topic/229453-mail-function/#findComment-1182517 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.