I am trying echo a background-image inside a .phtml to send an email.
However i am having troubles with the quotes. The image is not shown.
<?php echo '
Plataforma <a href="http://xxxx.com/">http://xxxx.com/</a>
<br>
<div style="width:220px; height:30px; background-color:black; background-repeat: no-repeat; background-image:url("http://www.inova-ria.pt/images/UebeImg/Thumb/Img_153_363_T.jpg")"></div>
'
?>
The IDE validate this code as correct, but the image is not shown in the email that is sent.
None of the other answers fixed the problem (gmail, hotmail). This will work