title: Display image in html e-mail with php
body: <p>I've read a few topics about this, already tried many of them, but none of them worked so far. So I'm kinda lost what to do now, it would be really important to display these images in the e-mail.</p>
  
  <p>Here is a shortened version of my code:</p>
  
  <pre><code>require_once("class.phpmailer.php");
  $body = '
      &lt;body style="margin: 10px auto;"&gt;
              &lt;table width="100%"&gt;
                  &lt;tr&gt;
                      &lt;td width="360"&gt;
                          &lt;img src="cid:trip_2" alt="trip_2"&gt;
                          &lt;!--&lt;img src="trip_2.png" alt="trip_2"&gt;--&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
              &lt;table width="100%"&gt;
                  &lt;tr&gt;
                      &lt;td align="right" width="360"&gt;
                          &lt;img src="cid:pic" alt="pic"&gt;
                          &lt;!--&lt;img src="pic.png" alt="pic"&gt;--&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
              &lt;table width="100%"&gt;
                  &lt;tr&gt;
                      &lt;td width="360"&gt;
                          &lt;img src="cid:pub" alt="pub"&gt;
                          &lt;!--&lt;img src="pub.png" alt="pub"&gt;--&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/div&gt;
      &lt;/body&gt;';
  
      $mail = new PHPMailer();
  
      $mail-&gt;Host       = "smtp.gmail.com";
      $mail-&gt;Port       = 25;
      $mail-&gt;Username   = "*****";
      $mail-&gt;Password   = '*****'
  
      $mail-&gt;IsHTML(true);
      $mail-&gt;Subject = "Please appear";
      $mail-&gt;AltBody = "To view the message, please use an HTML compatible email viewer!";
      $mail-&gt;SetFrom("example@example.com","Example");
      $mail-&gt;AddReplyTo("example@example.com","Example");
      $mail-&gt;AddAddress("example@example.com", "Example");
  
      $mail-&gt;AddEmbeddedImage("trip_2.png", "trip_2","trip_2.png");
      //$mail-&gt;AddAttachment("trip_2.png");
      $mail-&gt;AddEmbeddedImage("pic.png", "pic","pic.png");
      //$mail-&gt;AddAttachment("pic.png");
      $mail-&gt;AddEmbeddedImage("pub.png", "pub","pub.png");
      //$mail-&gt;AddAttachment("pub.png");
      $mail-&gt;MsgHTML($body);
  
      $mail-&gt;Send();
  </code></pre>
  
  <p>What I want to achieve is to display these 3 images in the e-mail, by default. So the user don't have to click "display images from this address" or something like that. Because without the images, the e-mail would be kinda empty, and we need some style in the e-mail.</p>
  
  <p>Sorry about my grammar Guys,
  thank you for your time.</p>
  
  <p>Mark</p>