title: PHP Variable Containing HTML as String - Needed to be converted to Image or PDF - Emailing The Response
body: <p>I am Sending email form php code and my email message body is HTML
  once the email is sent background image is not displaying in outlook desktop app, but its working fine in Outlook Web mail, how to make it visible in desktop outlook application</p>
  
  <p>due to which I am am thinking of converting email body to a pdf or image so that i can add it as message body </p>
  
  <p>can anyone please guide me to do it </p>
  
  <pre><code>$emailBody='&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;style&gt;
  #textDiv{
  background-image: url("appreciation-'.$imageId.'.jpg");background-repeat: no-repeat;width:595px;height: 842px;color: white;float: center;
  }
  #p1{
  padding-top: 420px;padding-left: 50px;width: 500px;font-size: large;
  }
  #p2{
  padding-top: 30px;padding-left: 50px;width: 500px;font-size: 25px;
  }
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;center&gt; 
  &lt;div id="textDiv"  align="center" style="font-family: cursive; text-align:center;"&gt;
      &lt;p id="p1"&gt;Hi '.$actReciverName.', you have received Kudos from '.$senderName.' &lt;/p&gt;
      &lt;p id="p2"&gt;&lt;i&gt;&lt;u&gt;"'.$comment.'"&lt;/u&gt;&lt;/i&gt;&lt;/p&gt; 
  &lt;/div&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;'
  </code></pre>
  
  <p>thanks in advance for your Support</p>