clbenedict Posted October 29, 2008 Share Posted October 29, 2008 Can someone tell me how to create a message that is sent to one email then create another that is sent to another email using the same php file? $message="CUSTOMER CONTACT INFORMATION: Name: ".$name." Comments: ".$project.""; $message = stripslashes($message); mail("emailone@testing.com","Contact Info ",$message,"From: ".$Email.""); $message2="CUSTOMER CONTACT INFORMATION: Name: ".$name." Comments: ".$project." --------------------------------- How did you hear about CCIS? ".$phone1type." Other: ".$address." "; $message2 = stripslashes($message); mail("emailtwo@testing.com","Contact Info w Address",$message2,"From: ".$Email.""); Is this possible? Quote Link to comment https://forums.phpfreaks.com/topic/130656-solved-create-two-unique-emails-with-one-form/ Share on other sites More sharing options...
clbenedict Posted October 30, 2008 Author Share Posted October 30, 2008 I am hoping to bring this to the top again for someone to help me. I don't fully understand why $message and $message2 is the same message. My code does send to two unique emails but it send the same message. Why? Thank you for your time. Quote Link to comment https://forums.phpfreaks.com/topic/130656-solved-create-two-unique-emails-with-one-form/#findComment-678653 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.