Linux mail command : HTML content in office 365 email is visible as plain text while it is correctly visible in gmail

♀尐吖头ヾ 提交于 2020-06-29 03:41:16

问题


I'm trying to send out some HTML content via email using mail linux command. I'm on CentOS 7.

mail -s "$(echo -e "This is Subject\nContent-Type: text/html")"  gpsanjeewaa@gmail.com pradeep.sanjeewa@axiatadigitallabs.com <  /var/www/html/report.html

Office365

Gmail

What is the reason for this different behavior and how can I resolve this?

来源:https://stackoverflow.com/questions/62305071/linux-mail-command-html-content-in-office-365-email-is-visible-as-plain-text-w

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!