Have you escaped the double quotes:
if($exfreeformaddress == '') {
$spanStyle = 'background-color: yellow;';
} else {
$spanStyle = 'background-color: white;';
}
$body .= "<span style=\"$spanStyle\">Address - " . $exfreeformaddress . "</span>\n";
broj1
Nearly a Posting Virtuoso
1,216 posts since Jan 2011
Reputation Points: 167
Solved Threads: 165
Skill Endorsements: 13
OK, addme wass a bit quicker :-)
broj1
Nearly a Posting Virtuoso
1,216 posts since Jan 2011
Reputation Points: 167
Solved Threads: 165
Skill Endorsements: 13