{"id":2213,"date":"2015-06-13T21:59:52","date_gmt":"2015-06-13T13:59:52","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=2213"},"modified":"2015-06-13T21:59:52","modified_gmt":"2015-06-13T13:59:52","slug":"%e5%9c%a8linux%e7%9a%84%e5%91%bd%e4%bb%a4%e8%a1%8c%e4%b8%8b%e5%8f%91%e9%80%81html%e6%a0%bc%e5%bc%8f%e7%9a%84%e9%82%ae%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/2213.html","title":{"rendered":"\u5728Linux\u7684\u547d\u4ee4\u884c\u4e0b\u53d1\u9001HTML\u683c\u5f0f\u7684\u90ae\u4ef6"},"content":{"rendered":"<h6>\u641c\u7d22\u5173\u952e\u5b57\uff1a<\/h6>\n<ul>\n<li>linux formail sendmail in html format<\/li>\n<li>Linux formail sendmail \u53d1\u9001HTML\u683c\u5f0f\u7684\u90ae\u4ef6<\/li>\n<li>Linux send email in html format<\/li>\n<\/ul>\n<h6>\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/tldp.org\/LDP\/LG\/issue14\/procmail.html\">http:\/\/tldp.org\/LDP\/LG\/issue14\/procmail.html<\/a><\/li>\n<li><a href=\"http:\/\/linuxcommand.org\/man_pages\/formail1.html\">http:\/\/linuxcommand.org\/man_pages\/formail1.html<\/a><\/li>\n<li><a href=\"http:\/\/linuxcommand.org\/man_pages\/sendmail1.html\">http:\/\/linuxcommand.org\/man_pages\/sendmail1.html<\/a><\/li>\n<li><a href=\"http:\/\/blog.itpub.net\/27042095\/viewspace-752170\/\">http:\/\/blog.itpub.net\/27042095\/viewspace-752170\/<\/a><\/li>\n<li><a href=\"http:\/\/www.ttlsa.com\/linux\/use-sendemail-send-file\/\">http:\/\/www.ttlsa.com\/linux\/use-sendemail-send-file\/<\/a><\/li>\n<li><a href=\"http:\/\/www.linuxidc.com\/Linux\/2011-01\/31165.htm\">http:\/\/www.linuxidc.com\/Linux\/2011-01\/31165.htm<\/a><\/li>\n<li><a href=\"http:\/\/blog.csdn.net\/chengfei112233\/article\/details\/7288054\">http:\/\/blog.csdn.net\/chengfei112233\/article\/details\/7288054<\/a><\/li>\n<li><\/li>\n<li><a href=\"http:\/\/superuser.com\/questions\/243152\/how-to-send-email-message-content-as-html-rather-than-plain-text\">http:\/\/superuser.com\/questions\/243152\/how-to-send-email-message-content-as-html-rather-than-plain-text<\/a><\/li>\n<li><a href=\"http:\/\/serverfault.com\/questions\/103097\/how-do-i-send-mail-from-linux-command-line-so-it-appears-as-html-to-recipient\">http:\/\/serverfault.com\/questions\/103097\/how-do-i-send-mail-from-linux-command-line-so-it-appears-as-html-to-recipient<\/a><\/li>\n<li><a href=\"http:\/\/unix.stackexchange.com\/questions\/15405\/how-do-i-send-html-email-using-linux-mail-command\">http:\/\/unix.stackexchange.com\/questions\/15405\/how-do-i-send-html-email-using-linux-mail-command<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/3317174\/sending-html-mail-using-a-shell-script\">http:\/\/stackoverflow.com\/questions\/3317174\/sending-html-mail-using-a-shell-script<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/2591755\/how-send-html-mail-using-linux-command-line\">http:\/\/stackoverflow.com\/questions\/2591755\/how-send-html-mail-using-linux-command-line<\/a><\/li>\n<\/ul>\n<h6>\u53c2\u8003\u89e3\u7b54\uff1a<\/h6>\n<pre class=\"lang:default decode:true \">$ cat table.html\n&lt;table bgcolor=red&gt;&lt;tr&gt;&lt;td&gt;\u8fd9\u662f\u4e00\u5c01\u6d4b\u8bd5\u90ae\u4ef6&lt;\/td&gt;&lt;\/tr&gt;&lt;\/table&gt;\n\n$ mail -a 'Content-Type: text\/html;charset=utf-8' -s \"HTML format's email\" web@ixyzero.com &lt; table.html\n\n$ 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')\" web@ixyzero.com &lt; for.sh\n\n$ cat table.html | formail -I \"Content-Type: text\/html; charset=utf-8\" | sendmail web@ixyzero.com<\/pre>\n<p>=EOF=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u641c\u7d22\u5173\u952e\u5b57\uff1a linux formail sendmail in html format Linux form [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,11,7,12],"tags":[478,30,526],"class_list":["post-2213","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-linux","category-programing","category-tools","tag-email","tag-linux","tag-mail"],"views":6235,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=2213"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2213\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=2213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=2213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=2213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}