configuration.ymlのメール設定(GoogleApps)

configuration.ymlのメール設定。 VPS上にメールサーバは立てずに、GoogleAppsを利用。

> GMailGoogle Apps、そのほかTLSを要求するSMTPサーバを利用する場合 、TLS関係の設定を追加する必要があります:

production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      tls: true
      enable_starttls_auto: true
      address: "smtp.gmail.com" 
      port: '587'
      domain: "smtp.gmail.com" 
      authentication: :plain
      user_name: "your_email@gmail.com" 
      password: "your_password" 
参考