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

Popular Categories





How can i send email with cc in PHP?

+2 votes
150 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,598 views
+6 votes
1 answer 254 views
+6 votes
2 answers 1,636 views
+5 votes
1 answer 1,177 views
+1 vote
2 answers 105 views
0 votes
1 answer 126 views
+2 votes
1 answer 124 views
asked in Programming by krish Expert (6,310 points)
+1 vote
1 answer 198 views
+4 votes
1 answer 1,000 views
0 votes
1 answer 164 views

Not a Member yet?

Ask to Folks Login

My Account
452 Folks are online
2 members and 450 guest online
Your feedback is highly appreciated