$ ruby script/plugin install git://github.com/collectiveidea/action_mailer_optional_tls.git
config/email.ymlに下記を記入
production:
delivery_method: :smtp
smtp_settings:
tls: true
address: "smtp.gmail.com"
port: 587
domain: "smtp.gmail.com"
authentication: :plain
user_name: "your_email@gmail.com"
password: "your_password"
これだけで動くはず。ほかのプラグイン(gmail_smtpとか)もいれちゃったりするとうまく動かないので注意(これで嵌った)
参考:
http://d.hatena.ne.jp/rx7/20100526/p1
0 件のコメント:
コメントを投稿