搜索关键字:
- linux formail sendmail in html format
- Linux formail sendmail 发送HTML格式的邮件
- Linux send email in html format
参考链接:
- http://tldp.org/LDP/LG/issue14/procmail.html
- http://linuxcommand.org/man_pages/formail1.html
- http://linuxcommand.org/man_pages/sendmail1.html
- http://blog.itpub.net/27042095/viewspace-752170/
- http://www.ttlsa.com/linux/use-sendemail-send-file/
- http://www.linuxidc.com/Linux/2011-01/31165.htm
- http://blog.csdn.net/chengfei112233/article/details/7288054
- http://superuser.com/questions/243152/how-to-send-email-message-content-as-html-rather-than-plain-text
- http://serverfault.com/questions/103097/how-do-i-send-mail-from-linux-command-line-so-it-appears-as-html-to-recipient
- http://unix.stackexchange.com/questions/15405/how-do-i-send-html-email-using-linux-mail-command
- http://stackoverflow.com/questions/3317174/sending-html-mail-using-a-shell-script
- http://stackoverflow.com/questions/2591755/how-send-html-mail-using-linux-command-line
参考解答:
$ cat table.html <table bgcolor=red><tr><td>这是一封测试邮件</td></tr></table> $ mail -a 'Content-Type: text/html;charset=utf-8' -s "HTML format's email" [email protected] < table.html $ mail -s "$(echo -e 'This is only a test of using `mail` command to send HTML format email\nContent-Type: text/html;charset=utf-8')" [email protected] < for.sh $ cat table.html | formail -I "Content-Type: text/html; charset=utf-8" | sendmail [email protected]
=EOF=
《 “在Linux的命令行下发送HTML格式的邮件” 》 有 4 条评论
如何指定HTML文件的utf-8字符编码
http://stackoverflow.com/questions/4696499/meta-charset-utf-8-vs-meta-http-equiv-content-type
http://www.w3schools.com/html/html_charset.asp
默认情况下CentOS里面是没有安装formail这个命令的,所以需要先用yum安装对应的package,但是很多情况下我们并不清楚formail命令存在于哪个软件包中(直接 `yum search formail` 没有结果),所以需要使用下面的方式来定位命令 `formail` 是由哪个软件包提供的:
`
sudo yum provides */formail
sudo yum install procmail
`
http://www.linuxnix.com/linux-yumrpm-check-which-package-provides-a-command-or-a-file/
http://xmodulo.com/how-to-find-what-package-file-belongs-to-on-centos-fedora.html
http://unix.stackexchange.com/questions/4705/how-to-find-out-which-package-a-file-belongs-to
http://superuser.com/questions/467186/how-to-find-which-package-certain-command-belongs-to-on-centos
从零开始邮件服务器搭建
https://paper.tuisec.win/detail/4f575776a265700
https://www.jianshu.com/p/610d9bf0ae8b
搭建一个forsaken-mail即收即毁临时邮箱
https://mp.weixin.qq.com/s/eZVqV9sNRoNJsqHGkdj3xg
https://github.com/malaohu/forsaken-mail
https://51.ruyo.net/3210.html