I am using this line:

if (!mail($to, $subject, $body, "From: " . $from . ";" . header("Content-type " . 
$contentType))) {..}

to use the mail() function in PHP to send simple text/plain or text/html email.  
However, upon attempting to send I get a warning message indicating that header 
information has already been set prior to emailing.  

Is there a way to overwrite only certain header information prior to emailing to 
ensure the content-type of the email being either text/plain or text/html?

Just wondering

Reply via email to