我已经实现了通过smtp协议发送邮件 现在我试图通过IMAP..protocol实现....我应该改变什么 config / devlopment .rb
config.action_mailer.default_url_options = { host: 'localhost', port: 9292}
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: 'imap.gmail.com'or'imap.hotmail.com'or'imap.yahoo.com', # default: localhost
port: '25', # default: 25
user_name: 'debasish.industrify2016@gmail.com',
password: 'debxxxxxxxx',
authentication: :plain # :plain, :login or :cram_md5
}