当我致电ContactMailer.contact_us(@user).deliver_later
时,我得到:
Errno :: ECONNREFUSED(连接被拒绝-的connect(2) “ 282.71.137.66”端口587):app / controllers / contacts_controller.rb:17:在
block in create' app/controllers/contacts_controller.rb:15:in
创建
有时
Net :: OpenTimeout执行过期错误
我的appliction.rb文件:
config.active_record.raise_in_transactional_callbacks = true
config.time_zone = 'Asia/Kolkata'
config.action_mailer.smtp_settings = {
:address => 'smtpauth.net4india.com',
:port => 587,
:domain => 'pop.net4india.com',
:user_name => "username@oakridgebs.com",
:password => "password",
:authentication => :plain,
:enable_starttls_auto => true
}
我试图挽救该错误,但在这种情况下,我没有收到电子邮件。您知道其他解决方案吗?