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

Popular Categories





How can i send email with cc in PHP?

+2 votes
156 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,657 views
+6 votes
1 answer 263 views
+6 votes
2 answers 1,683 views
+5 votes
1 answer 1,180 views
+1 vote
2 answers 114 views
0 votes
1 answer 134 views
+2 votes
1 answer 138 views
asked in Programming by krish Expert (6,310 points)
+1 vote
1 answer 205 views
+4 votes
1 answer 1,065 views
0 votes
1 answer 171 views

Not a Member yet?

Ask to Folks Login

My Account
529 Folks are online
0 members and 529 guest online
Your feedback is highly appreciated