2017-08-31 44 views
0

我試圖觸發本地主機郵件,我可以得到它與Gmail工作,但不是在Linux交友Godaddy的服務器託管我自己的電子郵件。這是我的development.rb配置:!網:: SMTPAuthenticationError(535驗證失敗

config.action_mailer.delivery_method = :smtp 
    config.action_mailer.smtp_settings = { 
    address: 'smtpout.secureserver.net', 
    domain: 'mail.[mydomain].com', 
    port:25, 
    authentication: 'login', 
    user_name:'[email protected][mydomain].mx', 
    password:'mypassword', 
    enable_starttls_auto: true 
} 

回答

0

的端口是80不是25,並確保您的防火牆沒有阻止它

# config/environments/development.rb 
config.action_mailer.delivery_method = :smtp 
config.action_mailer.smtp_settings = { 
    :address => 'smtpout.secureserver.net', 
    :domain => 'www.example.com', 
    :port  => 80, 
    :user_name => '[email protected]', 
    :password => 'yourpassword', 
    :authentication => :plain 
} 
+0

謝謝你的答案,我仍然得到認證的錯誤,我忘了提及這一點,但即時通訊試圖在本地主機運行此。 –

+0

是此設置本地主機(發展ENV) – widjajayd

+0

謝謝,但我仍然有同樣的錯誤。 –