title: Improving laravel mails to outlook/hotmail
body: <p>I have a Laravel app sending emails via MailGun. For Gmail addresses it works right of the bat, but for Outlook/Hotmail they are marked as spam and have broken formatting. I have identified some issues but not sure how to best fix them.</p>
  
  <p><strong>I am aware this post is broad but the common thing is how to please outlook/hotmail</strong>.  </p>
  
  <h2>Multipart messages</h2>
  
  <p>According to MailGun help:</p>
  
  <blockquote>
    <p>It is best to send multi-part emails using both text and HTML or text only. Sending HTML the only email is not well received by ESPs.</p>
  </blockquote>
  
  <p>Given my Mailables' build function below, how can I achieve that?</p>
  
  <pre><code>public function build()
  {
      return $this-&gt;from('name@mysite.com')
          -&gt;subject('Welcome to mysite!')
          -&gt;view('emails.welcome_new_user', [
              'updateLink' =&gt; env('APP_URL') . '/subscribers/' . $this-&gt;subscriber-&gt;id . "/edit/" . $this-&gt;subscriber-&gt;token,
              'deleteLink' =&gt; env('APP_URL') . '/subscribers/' . $this-&gt;subscriber-&gt;id . "/delete/" . $this-&gt;subscriber-&gt;token
          ]);
  }
  </code></pre>
  
  <h2>Headers</h2>
  
  <p>According to MailGun help:</p>
  
  <blockquote>
    <p>Make sure you are using unsubscribe links and headers in your emails. Many ESPs (particularly Hotmail) pay attention to this and if they are not there, you are likely to get filtered.</p>
  </blockquote>
  
  <p>In the view I have two unsubscribe links, one as a button in the body and one in the footer as plain text link so that should be fine. But how do I supply Headers and which headers? I assume it is done similar to this section in Laravel docs:</p>
  
  <pre><code>$message-&gt;getHeaders()-&gt;addTextHeader('Custom-Header', 'HeaderValue');
  </code></pre>
  
  <h2>Other tips on specific Outlook/Hotmail requirements</h2>
  
  <p>Also most appreciated</p>