Jump to content

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("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?

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.