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

1 Answer

+2 votes
by (2.8k points)
selected by
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: [email protected]\n";

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

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated