用 Action Mailer 来做个一个 rails 的发邮箱功能,教程中:
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "railscasts.com",
:user_name => "railscasts",
:password => "secret",
:authentication => "plain",
:enable_starttls_auto => true
}
这些是什么意思啊,如果中自己的 Gmail 邮箱的话,以上要改哪些?