2012-12-10 17 views
7

通常のGoogle Appsメールの代わりにWindows Live Hostedメールを使用するようにWebアプリケーションを正しく設定する際に問題が発生します。これは、Googleがそのようなサービスに対して料金を請求していないことによるものです。Rails 3:Hotmail/Live Hosted EmailのSMTP設定

私は適切なconfig.action_mailer.smtp_settingsを入力しましたが、何らかの理由で正しく送信するための電子メール通知を取得できません。下記の私の設定は、設定を別のGoogle Apps設定メールでスワップすると機能します。何か不足していますか?

config.action_mailer.smtp_settings = { 
:enable_starttls_auto => true, 
:address    => "smtp.live.com", 
:port     => "587", 
:domain    => "mail.live.com", 
:user_name   => "###########.net", 
:password    => "###########", 
:authentication  => :plain 
} 

これは私が受け取ったエラーです。 のgetaddrinfo:ノード名もservnameの提供、またはここにいない

+0

を覚えていて、='[email protected] config.mailer_senderを変更.com ' – icantbecool

答えて

1

を知ら私の設定です:

config.action_mailer.smtp_settings = { 
    :address    => "smtp.live.com", 
    :port     => 587, 
    :domain    => 'example.com', 
    :user_name   => 'XXXXXXXXX', 
    :password    => 'XXXXXXXXX', 
    :authentication  => 'plain', 
    :enable_starttls_auto => true } 

唯一の違いは、認証です。

また、あなたが考案使用して電子メールを送信しようとしている場合は、設定/初期化子/ devise.rbをチェックしてください、このライン

config.action_mailer.default_url_options = { :host => 'localhost:3000' } 
+1

このエラーが発生しました:SSLルーチン:SSL3_GET_RECORD:バージョン番号が間違っています。あなたはすでにそれを見ましたか?どんなヒントを解決するか? –

関連する問題