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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -