Jump to content

[SOLVED] CODING Problem


RON_ron

Recommended Posts

:confused: Email coding problem.

 

I need to send a section of the info to $tf and the same as a Cc to $email and also I need the full info to be sent to [email protected]. how to do that?

 

summery:

only selected Info: name / address

Subject: AAA

TO: $tf

Cc: $email

 

Full Info: name / address / phone / date

Subject: BBB

To: [email protected]

 

 

Link to comment
https://forums.phpfreaks.com/topic/177448-solved-coding-problem/
Share on other sites

:confused: Email coding problem.

 

I need to send a section of the info to $tf and the same as a Cc to $email and also I need the full info to be sent to [email protected]. how to do that?

 

summery:

only selected Info: name / address

Subject: AAA

TO: $tf

Cc: $email

 

Full Info: name / address / phone / date

Subject: BBB

To: [email protected]

 

http://uk3.php.net/manual/en/function.mail.php

COde so far. I'M NOT RECEIVING $ft

 

$to = "[email protected]";

$subject = "heading"; 
$headers = "From:" .$email."\r\n"; 
$message = "ABC Request";	
$message = "Name: " . $thename;	
$message .= "\n\nCompany or Club Name: " . $thecompany;
$message .= "\n\nAddress: " . $theaddress;
$message .= "\n\nRequired Date: " . $thedate;
$message .= "\n\nPhone: " . $phone;
$message .= "\n\nEmail: " . $email;

$sentOk = mail("$email",$subject,$message,$headers); 

echo "sentOk=" . $sentOk;

$to = "$ft";

$subject = "heading"; 
$headers = "From:" .$email."\r\n"; 
$headers .= Cc: $email"\r\n";
$message = "Thank you customer";	
$message = "Name: " . $thename;	
$message .= "\n\nCompany or Club Name: " . $thecompany;

$sentOk = mail("$email",$subject,$message,$headers); 
echo "sentOk=" . $sentOk;

>?

That's what I've done so far. But I'm not receiving $ft.

 

CODE:

//mail 1

$to = "[email protected]";

 

$subject = "heading";

$headers = "From:" .$email."\r\n";

$message = "ABC Request";

$message = "Name: " . $thename;

$message .= "\n\nCompany or Club Name: " . $thecompany;

 

$sentOk = mail("$email",$subject,$message,$headers);

echo "sentOk=" . $sentOk;

 

//mail 2

$to = "$ft";

 

$subject = "heading";

$headers = "From:" .$email."\r\n";

$headers .= Cc: $email"\r\n";

$message = "Thank you customer";

$message = "Name: " . $thename;

 

$sentOk = mail("$email",$subject,$message,$headers);

echo "sentOk=" . $sentOk;

 

>?

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.