Hey there! any question in your mind? Ask It Now!.

Popular Categories





How can i send email with cc in PHP?

+2 votes
139 views
asked in Programming by nisha (720 points)
I want to send e mail on submit of log in button with CC.

1 Answer

+2 votes
answered by monika (2,040 points)
selected by nisha
 
Best answer
you can use this

$xheaders = "";
    $xheaders .= "From: Name-Here. <$email>\n";
    $xheaders .= "X-Sender: <$email>\n";
    $xheaders .= "X-Mailer: PHP\n"; // mailer
    $xheaders .= "X-Priority: 1\n"; //1 Urgent Message, 3 Normal
    $xheaders .= "Content-Type:text/html; charset=\"iso-8859-1\"\n";
    $xheaders .= "Cc: cc_email@example.com\n";
    .................


    mail($email3, $subject, $message, $xheaders);

Related Questions

+3 votes
3 answers 2,451 views
+6 votes
1 answer 238 views
+6 votes
2 answers 1,557 views
+5 votes
1 answer 1,169 views
+1 vote
2 answers 78 views
0 votes
1 answer 105 views
+2 votes
1 answer 101 views
asked in Programming by krish Expert (6,310 points)
+1 vote
1 answer 183 views
+4 votes
1 answer 918 views
0 votes
1 answer 405 views

Not a Member yet?

Ask to Folks Login

My Account
752 Folks are online
57 members and 695 guest online
Your feedback is highly appreciated