0
即时通讯尝试使用小马为我的红宝石网站实现一个简单的表单,并且我一直收到错误“535-5.7.1用户名和密码不被接受”。我在正确的字段中输入了我自己的gmail用户名和密码。在pony.rb用户名和密码不被红宝石小马宝石接受
Pony.options = {
:to => 'myusername',
:via => :smtp,:
:via_options => {
:address => 'smtp.gmail.com',
:port => '587',
:enable_starttls_auto => true,
:user_name => 'myusername',
:password => 'mypassword',
:authentication => :plain, # :plain, :login, :cram_md5, no auth by default
:domain => "localhost.localdomain" # the HELO domain provided by the client to the server
}
}
嗨,我已经实现了你说的,但现在我得到的错误:是必需的 – 2013-03-16 18:31:54
app/models/inquiry.rb:29:在'deliver' app/controllers/inquiries_controller.rb:9:在'create ' – 2013-03-16 18:32:41
def递送 除非有效,否则返回false? Pony.mail({ :从=>%( “#{名称}” <#{email}>) :REPLY_TO =>电子邮件, :受试者=> “网站查询”, :体=>消息, :HTML_BODY = > simple_format(消息) }) 端 – 2013-03-16 18:33:14