1

In the past, I've sent email from Heroku apps using the Gmail server, like this:

config.action_mailer.deconfig.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  :address              => "smtp.gmail.com",
  :port                 => 587,
  :domain               => 'derp'
  :user_name            => 'derp.bot',
  :password             => 'derp42069',
  :authentication       => 'plain',
  :enable_starttls_auto => true  }

Since then I've enabled two-factor authentication for most of my domains. Before I do the same for my latest domain, will in wreck havoc with Rails code like you see above?

4

1 回答 1

3

如果更改确实破坏了您的代码,您可以通过使用特定于应用程序的密码来解决它。

于 2012-10-18T04:30:47.243 回答