I have an issue sending HTML mail with Yahoo Business Hosting.

I developed a web site for a friend to raise quotes for their cleaning company. I tested everything on my two of my hosts and everything works fine, I have created similar mail scripts for other people and they all work fine on other hosts.

When I use this script on Yahoo Business, it sends the mail correctly with the exception of the body of the email which is blank.

This is my send mail code ( The HTML is created as a string earlier on the page as $emailbody.

 $from = $siteEmail;
 $to = $_SESSION['cEmail']; 
 $subject = "Your Quotation from Eco Janitorial Ref: ".$_SESSION['RefID']."."; 
 $message = $emailBody;
 $headers = 'MIME-Version: 1.0' . "\r\n";
 $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n\n";
 $headers .= "From:" . $from ;


 $from = $siteEmailFrom;
 $to = $siteEmail; 
 $subject = "Copy of Quotation raised on Eco Janitorial Ref: ".$_SESSION['RefID']."."; 
 $message = $emailBody."<br/><br/>(Taxes Included in above quote [&#36;".number_format($row["Tax"],2)."])";
 $headers = 'MIME-Version: 1.0' . "\r\n";
 $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n\n";
 $headers .= "From:" . $from;


Does anyone know why this would not work on Yahoo, but does everywhere else please?



Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.