{"id":128644,"date":"2018-11-28T10:27:48","date_gmt":"2018-11-28T02:27:48","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=128644"},"modified":"2018-11-26T10:26:22","modified_gmt":"2018-11-26T02:26:22","slug":"linux-mail-send","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-mail-send.html","title":{"rendered":"linux\u4e2dmail\u51fd\u6570\u4e0d\u80fd\u53d1\u9001\u90ae\u4ef6\u600e\u4e48\u529e\u5462\uff1f"},"content":{"rendered":"
\u6ca1\u6709\u5b89\u88c5\u6216\u542f\u52a8 sendmail \u7ec4\u4ef6<\/p>\n
\u6211\u7528\u7684\u662f CentOS \uff0c\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u5b89\u88c5<\/p>\n
yum install sendmail<\/pre>\n2.\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u91cd\u542fphp-fpm\u8fdb\u7a0b<\/strong><\/div>\n\/etc\/init.d\/php-fpm restart<\/pre>\n3.\u68c0\u6d4bsendmail\u662f\u5426\u8fd0\u884c\u6b63\u5e38<\/strong><\/div>\n\/etc\/init.d\/sendmail status<\/pre>\n\u5982\u679c\u663e\u793a\u6b63\u5728\u8fd0\u884crunning \u5c31\u53ef\u4ee5\u3002<\/p>\n
\u53ef\u80fd\u7528\u5230\u7684\u547d\u4ee4<\/p>\n
\/etc\/init.d\/sendmail start (\u542f\u52a8sendmail)\r\n\r\n\/etc\/init.d\/sendmail stop (\u5173\u95edsendmail)\r\n\r\n\/etc\/init.d\/sendmail restart (\u91cd\u542fsendmail)<\/pre>\n4.\u914d\u7f6ephp.ini\uff0c\u586b\u5199sendmail\u7684\u7edd\u5bf9\u8def\u5f84<\/strong><\/div>\n\u4f7f\u7528\u547d\u4ee4\u6253\u5f00\u7f16\u8f91php.ini<\/p>\n
vi \/usr\/local\/php\/etc\/php.ini<\/pre>\n\u8f93\u5165?sendmail_path<\/span> \u67e5\u627e\u5b9a\u4f4d(\u6216\u8005\u624b\u52a8\u8df3\u8f6c\u627e\u5230sendmail_path)\uff0c\u4f60\u4f1a\u53d1\u73b0\u9ed8\u8ba4\u662f\u4e0b\u9762\u7684\u4ee3\u7801<\/p>\n
sendmail_path = ..<\/pre>\n","protected":false},"excerpt":{"rendered":"\u6ca1\u6709\u5b89\u88c5\u6216\u542f\u52a8 sendmail \u7ec4\u4ef6 \u6211\u7528\u7684\u662f CentOS \uff0c\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u5b89\u88c5 yum install […]<\/p>\n","protected":false},"author":63,"featured_media":128848,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-128644","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/128644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=128644"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/128644\/revisions"}],"predecessor-version":[{"id":128983,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/128644\/revisions\/128983"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/128848"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=128644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=128644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=128644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}