Refinery 找回密码时报错:Net::SMTPFatalError (555 5.5.2 Syntax error.)
设置 config/initializers/setup_mail.rb
?
To: corey.erp@gmail.com
Message-ID: <4d9846df326eb_288c57cd5f85836d@bogon.mail>
Subject: =?UTF-8?Q?=E5=AF=86=E7=A0=81=E9=87=8D=E7=BD=AE=E7=9A=84=E8=BF=9E=E6=8E=A5?=
Mime-Version: 1.0
Content-Type: text/html;
?charset=UTF-8
Content-Transfer-Encoding: base64?
production显示:
Net::SMTPFatalError (555 5.5.2 Syntax error. s41sm5755581wfc.15):
?
解决:
修改refinerycms-authentication-0.9.9.11/app/mailers/user_mailer.rb
将其中<no-reply@#{domain}> 用可用的 email 替代。
?
針對局域網:
设置 config/initializers/setup_mail.rb
??
?
参考:
?
http://cn.asciicasts.com/episodes/206-actionmailer-in-rails3
http://stackoverflow.com/questions/5298147/rails-3-email-sending-problem
http://blog.livedoor.jp/satoyansoft/archives/65456593.html
http://apidock.com/rails/ActionMailer/Base
http://qa.taobao.com/?p=11324