title: Linux mail command : HTML content in office 365 email is visible as plain text while it is correctly visible in gmail
body: <p>I'm trying to send out some HTML content via email using mail linux command. I'm on CentOS 7.</p>
  
  <pre><code>mail -s "$(echo -e "This is Subject\nContent-Type: text/html")"  gpsanjeewaa@gmail.com pradeep.sanjeewa@axiatadigitallabs.com &lt;  /var/www/html/report.html
  </code></pre>
  
  <p>Office365</p>
  
  <p><a href="https://i.stack.imgur.com/lJNWr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lJNWr.png" alt="enter image description here"></a></p>
  
  <p>Gmail </p>
  
  <p><a href="https://i.stack.imgur.com/2oroQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2oroQ.png" alt="enter image description here"></a></p>
  
  <p>What is the reason for this different behavior and how can I resolve this?</p>