title: PHP - auto-download image in HTML email
body: <p>I have a page which is sending an HTML email with the following PHP code:</p>
  
  <pre><code>$message = $body;//Create message body
  $sender = $sender;//Create sender
  $to = $customer_email;//Set who the email is being sent to
  $subject = 'Quote - '.$_SESSION['quote_number'];//Subject for email
  $headers = 'Content-type: text/html; charset=iso-8859-1' . "\r\n";//Content-type header for mail() PHP built-in function
  $headers .= 'To: '.$to . "\r\n";//To header for mail()
  $headers .= 'From: '.$sender . "\r\n";//From header for mail()
  $mail = mail($to, $subject, $message, $headers);//Send Email
  </code></pre>
  
  <p>Here is the part of the body with the image:</p>
  
  <pre><code>&lt;img src="some_img.gif" alt="Title" width="400" height="55" align="left"/&gt;
  </code></pre>
  
  <p>Right now when the email is sent, the image is not automatically downloaded, you have to right click it and download it. Is there a solution to automatically download this image within the mail() PHP function? If not, what is the easiest way I could do it?</p>
  
  <p>I have done some research on this already, I have already looked at over 4 articles, here are a few that did not make sense to me, so I have not used the code in them. They are also pretty outdated.</p>
  
  <p><a href="https://stackoverflow.com/questions/4312687/how-to-embed-images-in-email">How to embed images in email</a></p>
  
  <p><a href="https://stackoverflow.com/questions/3097664/embed-images-for-use-in-email-message-using-php">Embed images for use in email message using PHP?</a></p>
  
  <p>I am not interested in really complex code, for me I cannot stand classes and things like that where I just plain don't understand them.</p>