RailsでGmailを使ってメールを送る。(Google Appsも可)
# config/environments/development.rb:
(...)
  config.action_mailer.smtp_settings = {
    :address              => 'smtp.gmail.com',
    :port                 => 587,
    :domain               => 'example.com',
    :user_name            => 'foo@example.com',
    :password             => 'password',
    :authentication       => 'plain',
    :enable_starttls_auto => true
  }
(...)
下記を設定しないとエラーを表示してくれないところに注意する。
config.action_mailer.raise_delivery_errors = true
Send email with Rails by using Gmail. (Google Apps too)
If the following are not set, the error is not displayed.
