Is there a way to prevent this behavior?
My code:
$headers = "From: sender@email.com\r\n"; $headers .= "Cc: ".$cc .""; $subject = "testing ".$date; mail( $to, $subject, $content, $headers );The $cc variable contains the CC address. The $to contains the to-address and $content has the contents of the message.
Never mind, I solved it. Apparently there was a line break between the From and CC field which causes this problem. Fixed it like this:
$headers = "From: sender@email.com\n"; $headers .= "Cc: ".$cc ."\r\n";


Sign In
Create Account


Back to top









