如何使用非Gmail帐户配置Rails邮件程序?

时间:2019-02-18 16:41:35

标签: ruby-on-rails actionmailer

我有一个Rails邮件程序,我想使用非Gmail电子邮件帐户进行配置,并且可以通过Outlook访问。 SMTP地址为“ smtp.us.exg7.exghost.com”。电子邮件不是 @ exghost.com。

我遇到504 5.7.4无法识别的身份验证类型错误。

这是我的配置:

 config.action_mailer.smtp_settings = {

    :address => "smtp.us.exg7.exghost.com",

    :port => "587",

    :domain => "exghost.org",

    :user_name => 'example@example.org', 

    :password => 'Password',

    :authentication => "plain",

    :enable_starttls_auto => true

     } 

有人对此有任何见识吗?我尝试了各种域-exghost.comus.exg7.exghost.comexample.org。我尝试将身份验证从“ plain”更改为“ login”,但是似乎没有什么可以改变错误。

我知道在gmail中必须允许第三方访问,这是否需要使用其他格式?

0 个答案:

没有答案