Using html with style tags in php code -
Using html with style tags in php code -
i have been given next template utilize in email. using phpmailer mail service out, having problem way style tags begin , end conflicting php. if go through thier template, move styles seporate style sheet or utilize classes , set styles @ top of page, dont want unless have to.
below generic illustration of going wrong code. font names wrapped in "s opening , closing tags of style 's , these 's clashing opening , closing tags of php. cant seem find way round though if put, style=""font-name","another-font"" wont work, if utilize 's @ php screwed up.
what happening in php mailer form contents declared
$body = '<span style='font-size: 13.5pt;font-family:"georgia","serif";color:white'>some content</span></html>';
you need escape quotes. example:
$body = '<div style=\'background:#000;\'><p>srs business here</p></div>';
php html coding-style stylesheet
Comments
Post a Comment