title: PHPMailer AddAttachment remote file
body: <pre><code>$remote_path = 'http://bucket.s3.amazonaws.com/whatever.txt';
  $mail-&gt;AddAttachment($remote_path);
  </code></pre>
  
  <p>This doesn't work because PHPMailer wants a local file, or binary data. It tried this too:</p>
  
  <pre><code>$data = file_get_contents($remote_path);
  $mail-&gt;AddAttachment($data);
  </code></pre>
  
  <p>I don't want to download it into a local file if I don't have to. Why doesn't the <code>file_get_contents</code> version work? Is it a string and not binary data?</p>
  
  <p>Edit: I get no errors.</p>