{"id":67,"date":"2011-04-05T11:13:29","date_gmt":"2011-04-05T03:13:29","guid":{"rendered":"http:\/\/guoh.ai\/lifelog\/?p=67"},"modified":"2011-04-06T12:12:27","modified_gmt":"2011-04-06T04:12:27","slug":"sending-emails-with-smtp-in-bugzilla","status":"publish","type":"post","link":"https:\/\/guoh.ai\/lifelog\/2011\/04\/sending-emails-with-smtp-in-bugzilla\/","title":{"rendered":"\u5728Bugzilla\u4e2d\u901a\u8fc7SMTP\u53d1\u901a\u77e5\u90ae\u4ef6"},"content":{"rendered":"<p>Bugzilla 4.0\u6ce8\u518c\u9a8c\u8bc1\u901a\u77e5\u7b49\u90ae\u4ef6\u53ef\u4ee5\u901a\u8fc7SendMail\u4e4b\u7c7b\u7684\u6765\u53d1\u9001\uff0c\u914d\u7f6e\u4e5f\u5f88\u7b80\u5355\uff0c\u4f46\u662f\u5b83\u53d1\u51fa\u53bb\u7684\u90ae\u4ef6\u540e\u7f00\u5730\u5740\u662flocalhost.localdomain\u4e4b\u7c7b\u7684\u5730\u5740\uff0c\u4f1a\u88ab\u4e00\u4e9b\u90ae\u7bb1\u62e6\u622a\uff0c\u4ece\u800c\u6536\u4e0d\u5230\u90ae\u4ef6\u3002\u6240\u4ee5\u901a\u8fc7SMTP\u6765\u53d1\u90ae\u4ef6\u8fd8\u662f\u5f88\u5fc5\u8981\u7684\u3002<br \/>\n\u6587\u6863\u4e0a\u8bf4\u7684\u914d\u7f6eSMTP\u4e5f\u5f88\u7b80\u5355\uff0c\u4f46\u662f\u6211\u5728\u914d\u7f6e\u7684\u65f6\u5019\u9047\u5230\u51e0\u4e2a\u95ee\u9898\uff0c\u5728\u6b64\u8bb0\u5f55\u4e0b\u6765<br \/>\n1\u3001The new value for smtp_username is invalid: SMTP Authentication is not available. Run checksetup.pl for more details.<br \/>\n\u8fd9\u662f\u6211\u5728Bugzilla\u4e2dCreate New Account\u7684\u65f6\u5019\u53d1\u9a8c\u8bc1\u90ae\u4ef6\u65f6\u4ea7\u751f\u7684\uff0c\u8fd9\u4e2a\u7684\u539f\u56e0\u662fPerl\u6709\u4e2a\u6a21\u5757\u6ca1\u6709\u5b89\u88c5\uff0c\u5b89\u88c5\u4e0b\u5c31\u53ef\u4ee5\u4e86<br \/>\nsudo perl install-module.pl Authen::SASL<br \/>\n\u81ea\u5df1\u5148\u53ef\u4ee5\u901a\u8fc7$ .\/checksetup.pl &#8211;check-modules\u67e5\u770b\u4e0b\u5df2\u7ecf\u5b89\u88c5\u4e86\u54ea\u4e9b\u6a21\u5757<br \/>\n\u53ea\u8981\u5b89\u88c5\u597d\uff0c\u4e0a\u8ff0\u7684\u8fd9\u4e2a\u95ee\u9898\u5c31\u89e3\u51b3\u4e86<\/p>\n<p>\u6240\u4ee5\u518d\u6b21\u8bd5\u7740\u6ce8\u518c\u4e00\u4e2a\u7528\u6237\uff0c\u63d0\u793a\u90ae\u4ef6\u53d1\u9001\u6210\u529f\u4e86\uff0c\u4e8e\u662f\u4e0b\u9762\u7684\u95ee\u9898\u4ea7\u751f\u4e86<\/p>\n<p>2\u3001\u63d0\u793a\u90ae\u4ef6\u6210\u529f\u53d1\u9001\uff0c\u4f46\u662f\u5b9e\u9645\u90ae\u4ef6\u6ca1\u6709\u53d1\u9001\u51fa\u53bb\uff0c\u56e0\u4e3a\u6211\u586b\u7684\u90ae\u7bb1\u6ca1\u6709\u6536\u5230\u90ae\u4ef6<br \/>\n\u5728\u8fd9\u91cc\u6211\u539f\u5148\u662f\u5f00\u542f\u4e86use_mailer_queue\u8fd9\u4e2a\u529f\u80fd<br \/>\n\u4e8e\u662f\u6211\u9009\u62e9\u4f7f\u7528Test\u6a21\u5f0f(Parameters -> Email -> mail_delivery_method -> SMTP)\u518d\u53d1\u4e86\u4e00\u6b21\uff0cmailer.testfile\u6728\u6709\u90ae\u4ef6<\/p>\n<p>\u7f51\u7edc\u4e0a\u6709\u4eba\u548c\u6211\u662f\u4e00\u6837\u7684\u95ee\u9898\uff0c\u53d1\u4e0d\u51fa\u53bb\u90ae\u4ef6\uff0c\u6211\u53c2\u770b\u8fd9\u91cchttp:\/\/hi.baidu.com\/ever__love\/blog\/item\/62473a9772800846d0135e2c.html\u7684\u65b9\u6cd5\uff0c\u628ause_mailer_queue\u5173\u95ed(Parameters -> Email -> use_mailer_queue -> Off)\uff0c\u518d\u8bd5\u7740\u53d1\u9001\u4e00\u6b21\uff0c\u679c\u771fmailer.testfile\u5f53\u4e2d\u6709\u90ae\u4ef6\u4e86<\/p>\n<p>\u8fd9\u6837\u5c31\u57fa\u672c\u5b9a\u4f4d\u5230\u95ee\u9898use_mailer_queue\u6ca1\u6709\u6b63\u5e38\u5de5\u4f5c<\/p>\n<p>\u4e8e\u662f\u53c8\u628ause_mailer_queue\u5f00\u542f<br \/>\n\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4<br \/>\n$ $BUGZILLA_HOME\/jobqueue.pl check<br \/>\nConfiguration looks okay<br \/>\njobqueue.pl running &#8211; pid 5317<br \/>\n9 jobs in the queue.<\/p>\n<p>\u770b\u8d77\u6765\u4f3c\u4e4e\u6b63\u5e38\uff0c\u4f46\u662f\u63d0\u793a9 jobs in the queue\uff0c\u5e76\u4e14\u8fd9\u4e2a\u6570\u76ee\u4e00\u76f4\u6ca1\u6709\u51cf\u5c11\uff0c\u8fd9\u8bf4\u660e\u90ae\u4ef6\u51e0\u4e4e\u90fd\u88ab\u5835\u585e\u5728\u8fd9\u91cc\u4e86\uff0c\u800c\u5e76\u6ca1\u6709\u53d1\u51fa\u53bb<\/p>\n<p>\u4e8e\u662f\u53c8Debug\u53d1\u73b0<br \/>\n$ $BUGZILLA_HOME\/jobqueue.pl -f -d restart<br \/>\nKilling 9657<br \/>\nStarting up&#8230;<br \/>\nTheSchwartz::work_once found no jobs<br \/>\nTheSchwartz::work_once found no jobs<\/p>\n<p>\u51e0\u4e4e\u795e\u4e86\uff0c\u8fd9\u91cc\u53c8\u8bf4\u6ca1\u6709\u9519\u8bef\uff0c\u90a3\u5230\u5e95\u662f\u54ea\u91cc\u51fa\u95ee\u9898\u4e86\u5462\uff1f<br \/>\n<del datetime=\"2011-04-05T08:15:13+00:00\">\u76ee\u524d\u65e0\u89e3\uff0c\u6c42\u89e3ING\u3002\u3002\u3002<\/del><\/p>\n<p>UPDATE \u540e\u6765\u7ecf\u8fc7\u5206\u6790\u89e3\u51b3\u4e86\u6b64\u95ee\u9898<br \/>\n\u867d\u7136debug jobqueue\u51fa\u6765\u7684\u4fe1\u606f\u5f00\u5934\u51e0\u4e2a\u6ca1\u6709\u53d1\u73b0\u4ec0\u4e48\u5f02\u5e38\uff0c\u4f46\u662f\u7ecf\u8fc7\u5f88\u591a\u4e2a\u201cTheSchwartz::work_once found no jobs\u201d\u4e4b\u540e\u51fa\u6765\u4e00\u4e9b\u9519\u8bef\u4fe1\u606f\uff0c\u5982\u4e0b\uff1a<br \/>\n&#8230;&#8230;<br \/>\nTheSchwartz::work_once found no jobs<br \/>\nTheSchwartz::work_once found no jobs<br \/>\nTheSchwartz::work_once found no jobs<br \/>\n&#8230;&#8230;.<br \/>\nTheSchwartz::work_once found no jobs<br \/>\nTheSchwartz::work_once found no jobs<br \/>\nTheSchwartz::work_once found no jobs<br \/>\nTheSchwartz::work_once got job of class &#8216;Bugzilla::Job::Mailer&#8217;<br \/>\nWorking on Bugzilla::Job::Mailer &#8230;<br \/>\nUse of uninitialized value $hostname in concatenation (.) or string at Bugzilla\/Mailer.pm line 153.<br \/>\njob failed.  considering retry.  is max_retries of 725 >= failures of 5?<br \/>\njob failed: There was an error sending mail from &#8216;bugzilla_admin@&#8217; to<br \/>\n&#8216;xxxxx@aol.com&#8217;:Can&#8217;t call method &#8220;address&#8221; on an undefined value at<br \/>\nlib\/Email\/Send\/SMTP.pm line 25.<br \/>\nTheSchwartz::work_once found no jobs<br \/>\n&#8230;&#8230;<br \/>\nTheSchwartz::work_once found no jobs<br \/>\nTheSchwartz::work_once got job of class &#8216;Bugzilla::Job::Mailer&#8217;<br \/>\nWorking on Bugzilla::Job::Mailer &#8230;<br \/>\nUse of uninitialized value $hostname in concatenation (.) or string at Bugzilla\/Mailer.pm line 153.<br \/>\njob failed.  considering retry.  is max_retries of 725 >= failures of 5?<br \/>\njob failed: There was an error sending mail from &#8216;bugzilla_admin@&#8217; to<br \/>\n&#8216;xxxxxx@gmail.com&#8217;:Can&#8217;t call method &#8220;address&#8221; on an undefined value<br \/>\nat lib\/Email\/Send\/SMTP.pm line 25.<br \/>\nTheSchwartz::work_once found no jobs<br \/>\n&#8230;&#8230;<br \/>\nTheSchwartz::work_once found no jobs<\/p>\n<p>&#8230;&#8230;\u662f\u6211\u7701\u7565\u6389\u4e86\u5f88\u591a\u8fd9\u6837\u76f8\u540c\u7684\u72b6\u6001<\/p>\n<p>\u770b\u8d77\u6765\u8fd9\u4e2ajobqueue\u5f53\u4e2d\u7684\u4efb\u52a1\u4e0d\u662f\u7acb\u5373\u5c31\u6267\u884c\u4e86\u7684\uff0c\u5b83\u53ef\u80fd\u662f\u7ecf\u8fc7\u67d0\u79cd\u7b97\u6cd5\u624d\u6267\u884c\u7684<br \/>\n\u5426\u5219\u4e0d\u5e94\u8be5\u51fa\u73b0\u7b2c\u4e00\u4e2a\u5c31\u662f\u201cTheSchwartz::work_once found no jobs\u201d\uff0c\u5230\u540e\u9762\u624d\u6709\u4efb\u52a1\u6267\u884c\u7684<\/p>\n<p>\u5e76\u4e14\u8fdb\u4e00\u6b65\u53d1\u73b0\u8fd9\u4e9b\u4efb\u52a1\u961f\u5217\u90fd\u662f\u653e\u5728\u6570\u636e\u5e93\u5f53\u4e2d\u7684\u4e00\u5f20\u8868(ts_job)\u4e2d\u7684\uff0c\u4efb\u52a1\u6210\u529f\u4e00\u4e2a\u5c31\u628a\u5b83\u4ece\u8fd9\u5f20\u8868\u4e2d\u5220\u9664<\/p>\n<p>\u4e0d\u8fc7\u6b64\u65f6\u95ee\u9898\u8fd8\u6ca1\u6709\u89e3\u51b3\uff0c\u8ba4\u771f\u770b\u4e0b\u9519\u8bef\uff0c\u5e76\u4e14\u770b\u4e86\u6307\u51fa\u7684\u9519\u8bef\u5730\u65b9\u7684\u6e90\u4ee3\u7801\uff0c\u89c9\u5f97\u5e94\u8be5\u662fmailfrom\u586b\u9519\u4e86\uff0c\u53ef\u80fd\u6211\u8fd9\u91cc\u586b\u7684\u4e0d\u5b8c\u6574<\/p>\n<p>\u53c8\u6253\u5f00SMTP\u7684\u8c03\u8bd5\u5f00\u5173(Parameters -> Email -> smtp_debug -> On)\uff0c\u8fd9\u6837\u80fd\u770b\u5230\u66f4\u591a\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u57fa\u672c\u89c9\u5f97\u95ee\u9898\u5c31\u5728\u8fd9\u4e86<\/p>\n<p>\u4e8e\u662f\u6211\u586b\u5199\u4e86\u6807\u51c6\u7684\u90ae\u4ef6\u683c\u5f0f\u201cusername@example.com\u201d\u4e4b\u540e\u518d\u8bd5\uff0c\u90ae\u4ef6\u8fd8\u4e0d\u6ca1\u6709\u53d1\u51fa\u53bb\uff0cjobqueue\u7684\u7684\u6570\u91cf\u53c8\u589e\u52a0\u4e86\u4e00\u4e2a\uff0c<br \/>\n\u770b\u6765\u53ef\u80fd\u524d\u9762\u7684\u8fd9\u4e9b\u5305\u542b\u9519\u8bef\u4fe1\u606f\u7684\u961f\u5217\u5df2\u7ecf\u5c06\u540e\u9762\u7684\u963b\u585e\u4e86\uff0c\u4e8e\u662f\u6211\u8bd5\u7740\u5c06ts_job\u8868\u5f53\u4e2d\u7684\u6570\u636e\u5220\u9664<br \/>\ntruncate table ts_job; \/\/ \u53cd\u6b63\u6211\u8fd9\u91cc\u662f\u76f4\u63a5truncate\u6389\u4e86\u7684\uff0c\u6211\u4e0d\u77e5\u9053\u8fd9\u91ccdelete\u548ctruncate\u6709\u6ca1\u6709\u533a\u522b<\/p>\n<p>\u518d\u6b21\u6ce8\u518c\u4e86\u4e00\u904d\uff0c\u770b\u5230\u540e\u53f0\u8f93\u51fa\u901a\u77e5\u90ae\u4ef6\u53d1\u9001\u6210\u529f\u7684\u4fe1\u606f\uff0c\u5982\u4e0b\uff1a<br \/>\nTheSchwartz::work_once found no jobs<br \/>\nTheSchwartz::work_once got job of class &#8216;Bugzilla::Job::Mailer&#8217;<br \/>\nWorking on Bugzilla::Job::Mailer &#8230;<br \/>\nNet::SMTP>>> Net::SMTP(2.31)<br \/>\nNet::SMTP>>>   Net::Cmd(2.29)<br \/>\nNet::SMTP>>>     Exporter(5.63)<br \/>\nNet::SMTP>>>   IO::Socket::INET(1.31)<br \/>\nNet::SMTP>>>     IO::Socket(1.31)<br \/>\nNet::SMTP>>>       IO::Handle(1.28)<br \/>\nNet::SMTP=GLOB(0xb79ce68)<<< 220 esmtp4.qq.com Esmtp QQ Mail Server\nNet::SMTP=GLOB(0xb79ce68)>>> EHLO localhost.localdomain<br \/>\nNet::SMTP=GLOB(0xb79ce68)<<< 250-esmtp4.qq.com\nNet::SMTP=GLOB(0xb79ce68)<<< 250-PIPELINING\nNet::SMTP=GLOB(0xb79ce68)<<< 250-SIZE 52428800\nNet::SMTP=GLOB(0xb79ce68)<<< 250-AUTH LOGIN PLAIN\nNet::SMTP=GLOB(0xb79ce68)<<< 250-AUTH=LOGIN\nNet::SMTP=GLOB(0xb79ce68)<<< 250 8BITMIME\nNet::SMTP=GLOB(0xb79ce68)>>> AUTH LOGIN<br \/>\n&#8230;&#8230;<br \/>\nNet::SMTP=GLOB(0xb79ce68)<<< 235 Authentication successful\nNet::SMTP=GLOB(0xb79ce68)>>> MAIL FROM:<xxxxxx@qq.com><br \/>\nNet::SMTP=GLOB(0xb79ce68)<<< 250 Ok\nNet::SMTP=GLOB(0xb79ce68)>>> RCPT TO:<xxxxxx@gmail.com><br \/>\nNet::SMTP=GLOB(0xb79ce68)<<< 250 Ok\nNet::SMTP=GLOB(0xb79ce68)>>> DATA<br \/>\nNet::SMTP=GLOB(0xb79ce68)<<< 354 End data with <CR><LF>.<CR><LF><br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> From: xxxxxx@qq.com<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> To: xxxxxx@gmail.com<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> Subject: Bugzilla: confirm account creation<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> X-Bugzilla-Type: admin<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> X-Bugzilla-URL:<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> Auto-Submitted: auto-generated<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> Content-Type: text\/plain; charset=&#8221;UTF-8&#8243;<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> MIME-Version: 1.0<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> Date: Tue, 05 Apr 2011 16:05:23 +0800<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>><br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> Bugzilla has received a request to create a user account<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> using your email address (xxxxxx@gmail.com).<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>><br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> To continue creating an account using this email address, visit the<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> following link by April  8, 2011 at 16:05 CST:<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>><br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> token.cgi?t=FegLL6OpYM&#038;a=request_new_account<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> PRIVACY NOTICE: Bugzilla is an open bug tracking system. Activity on most<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> bugs, including email addresses, will be visible to the public. We recommend<br \/>\n&#8230;&#8230;<br \/>\nNet::SMTP=GLOB(0xb79ce68)>>> .<br \/>\nNet::SMTP=GLOB(0xb79ce68)<<< 250 Ok: queued as \nNet::SMTP=GLOB(0xb79ce68)>>> QUIT<br \/>\nNet::SMTP=GLOB(0xb79ce68)<<< 221 Bye\njob completed\nTheSchwartz::work_once found no jobs\n\n\u5230QQ Mail\u4e5f\u770b\u5230\u53d1\u9001\u6210\u529f\u7684\u90ae\u4ef6\uff0c\u5728Gmail\u4e5f\u6536\u5230\u4e86\u90ae\u4ef6\uff0c\u5230\u6b64\u624d\u7b97\u57fa\u672c\u6210\u529f\u3002\n\nParameters -> Email\u91cc\u9762\u6211\u7684\u57fa\u672c\u51e0\u9879\u6570\u636e\u5982\u4e0b<br \/>\nmailfrom : xxxxxx@qq.com \/\/ \u51fa\u73b0\u95ee\u9898\u5c31\u662f\u8fd9\u91cc\u586b\u7684\u4e0d\u6807\u51c6<br \/>\nuse_mailer_queue : on<br \/>\nsmtpserver : smtp.qq.com<br \/>\nsmtp_username : xxxxxx@qq.com<br \/>\nsmtp_password : ******<\/p>\n<p>\u5982\u679cmail_delivery_method\u4f60\u9009\u62e9SendMail\u6216\u8005Test\uff0c\u90a3\u4e48SMTP\u76f8\u5173\u7684\u53c2\u6570\u5c31\u53ef\u4ee5\u4e0d\u7528\u586b\u4e86\uff0c\u5982\u679c\u4f60\u662f\u901a\u8fc7SSL\u52a0\u5bc6\u7684SMTP\u94fe\u63a5\uff0c\u5e94\u8be5\u662f\u8981\u65b0\u88c5\u63d2\u4ef6\u4e86<\/p>\n<p>P.S. \u5173\u4e8euse_mailer_queue\u7684\u4fe1\u606f\u8bf7\u632a\u6b65http:\/\/www.bugzilla.org\/releases\/4.0\/release-notes.html#v34_feat_async<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bugzilla 4.0\u6ce8\u518c\u9a8c\u8bc1\u901a\u77e5\u7b49\u90ae\u4ef6\u53ef\u4ee5\u901a\u8fc7SendMail\u4e4b\u7c7b\u7684\u6765\u53d1\u9001\uff0c\u914d\u7f6e\u4e5f\u5f88\u7b80\u5355\uff0c\u4f46\u662f\u5b83\u53d1\u51fa\u53bb\u7684\u90ae\u4ef6\u540e\u7f00\u5730\u5740\u662flocalhost.localdomain\u4e4b\u7c7b\u7684\u5730\u5740\uff0c\u4f1a\u88ab\u4e00\u4e9b\u90ae\u7bb1\u62e6\u622a\uff0c\u4ece\u800c\u6536\u4e0d\u5230\u90ae\u4ef6\u3002\u6240\u4ee5\u901a\u8fc7SMTP\u6765\u53d1\u90ae\u4ef6\u8fd8\u662f\u5f88\u5fc5\u8981\u7684\u3002 \u6587\u6863\u4e0a\u8bf4\u7684\u914d\u7f6eSMTP\u4e5f\u5f88\u7b80\u5355\uff0c\u4f46\u662f\u6211\u5728\u914d\u7f6e\u7684\u65f6\u5019\u9047\u5230\u51e0\u4e2a\u95ee\u9898\uff0c\u5728\u6b64\u8bb0\u5f55\u4e0b\u6765 1\u3001The new value for smtp_username is invalid: SMTP Authentication is not available. Run checksetup.pl for more details. \u8fd9\u662f\u6211\u5728Bugzilla\u4e2dCreate New Account\u7684\u65f6\u5019\u53d1\u9a8c\u8bc1\u90ae\u4ef6\u65f6\u4ea7\u751f\u7684\uff0c\u8fd9\u4e2a\u7684\u539f\u56e0\u662fPerl\u6709\u4e2a\u6a21\u5757\u6ca1\u6709\u5b89\u88c5\uff0c\u5b89\u88c5\u4e0b\u5c31\u53ef\u4ee5\u4e86 sudo perl install-module.pl Authen::SASL \u81ea\u5df1\u5148\u53ef\u4ee5\u901a\u8fc7$ .\/checksetup.pl &#8211;check-modules\u67e5\u770b\u4e0b\u5df2\u7ecf\u5b89\u88c5\u4e86\u54ea\u4e9b\u6a21\u5757 \u53ea\u8981\u5b89\u88c5\u597d\uff0c\u4e0a\u8ff0\u7684\u8fd9\u4e2a\u95ee\u9898\u5c31\u89e3\u51b3\u4e86 \u6240\u4ee5\u518d\u6b21\u8bd5\u7740\u6ce8\u518c\u4e00\u4e2a\u7528\u6237\uff0c\u63d0\u793a\u90ae\u4ef6\u53d1\u9001\u6210\u529f\u4e86\uff0c\u4e8e\u662f\u4e0b\u9762\u7684\u95ee\u9898\u4ea7\u751f\u4e86 2\u3001\u63d0\u793a\u90ae\u4ef6\u6210\u529f\u53d1\u9001\uff0c\u4f46\u662f\u5b9e\u9645\u90ae\u4ef6\u6ca1\u6709\u53d1\u9001\u51fa\u53bb\uff0c\u56e0\u4e3a\u6211\u586b\u7684\u90ae\u7bb1\u6ca1\u6709\u6536\u5230\u90ae\u4ef6 \u5728\u8fd9\u91cc\u6211\u539f\u5148\u662f\u5f00\u542f\u4e86use_mailer_queue\u8fd9\u4e2a\u529f\u80fd \u4e8e\u662f\u6211\u9009\u62e9\u4f7f\u7528Test\u6a21\u5f0f(Parameters -> Email -> mail_delivery_method -> SMTP)\u518d\u53d1\u4e86\u4e00\u6b21\uff0cmailer.testfile\u6728\u6709\u90ae\u4ef6 \u7f51\u7edc\u4e0a\u6709\u4eba\u548c\u6211\u662f\u4e00\u6837\u7684\u95ee\u9898\uff0c\u53d1\u4e0d\u51fa\u53bb\u90ae\u4ef6\uff0c\u6211\u53c2\u770b\u8fd9\u91cchttp:\/\/hi.baidu.com\/ever__love\/blog\/item\/62473a9772800846d0135e2c.html\u7684\u65b9\u6cd5\uff0c\u628ause_mailer_queue\u5173\u95ed(Parameters -> Email -> use_mailer_queue -> Off)\uff0c\u518d\u8bd5\u7740\u53d1\u9001\u4e00\u6b21\uff0c\u679c\u771fmailer.testfile\u5f53\u4e2d\u6709\u90ae\u4ef6\u4e86 \u8fd9\u6837\u5c31\u57fa\u672c\u5b9a\u4f4d\u5230\u95ee\u9898use_mailer_queue\u6ca1\u6709\u6b63\u5e38\u5de5\u4f5c \u4e8e\u662f\u53c8\u628ause_mailer_queue\u5f00\u542f \u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4 $ $BUGZILLA_HOME\/jobqueue.pl check Configuration &hellip; <a href=\"https:\/\/guoh.ai\/lifelog\/2011\/04\/sending-emails-with-smtp-in-bugzilla\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u5728Bugzilla\u4e2d\u901a\u8fc7SMTP\u53d1\u901a\u77e5\u90ae\u4ef6<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gfmr_meta_descriptions":[],"_gfmr_multilingual_taxonomy_terms":[],"footnotes":""},"categories":[6],"tags":[10],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bugzilla"],"_links":{"self":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":10,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/67\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}