2012-12-10 38 views
7

我在正確設置我的Web應用程序以使用Windows Live託管電子郵件而不是普通的Google Apps電子郵件時遇到問題。這是由於Google停止對這些服務收費的事實。Rails 3:Hotmail/Live託管電子郵件的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

如果您使用的設計,並試圖發送電子郵件,請務必檢查配置/初始化/ devise.rb並更改config.mailer_sender ='[email protected] .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 } 

唯一的區別是認證。

還記得這條線

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

我收到此錯誤:SSL例程:SSL3_GET_RECORD:版本號錯誤。你已經看到了嗎?任何提示如何解決? –

相關問題