Jump to content

[SOLVED] Create two unique emails with one form


clbenedict

Recommended Posts

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("[email protected]","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("[email protected]","Contact Info w Address",$message2,"From: ".$Email."");

 

Is this possible?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.