ActionMailer - 使用 Google 应用程序发送电子邮件不起作用,但适用于免费的 Gmail 帐户
ActionMailer - Sending email with Google Apps doesn't work, but works with free Gmail account
当我尝试使用 Google Apps 帐户发送一些电子邮件时,我收到此错误:
EOFError: end of file reached
使用免费的 Gmail 帐户,电子邮件发送成功。
这是我的 Mailer 配置:
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "devsup.com.br'",
user_name: "admin@devsup.com.br",
password: "password",
enable_starttls_auto: true,
authentication: "plain"
}
有人知道我必须做什么吗?我必须在我的 Google Apps 帐户中进行一些配置?
谢谢! :)
我们遇到了类似的问题。尝试将域设置为 gmail.com
,如下所示:
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "gmail.com",
user_name: "admin@devsup.com.br",
password: "password",
enable_starttls_auto: true,
authentication: "plain"
}
编辑:
或者尝试确保删除域中的拼写错误。您的域中现在有一个额外的单引号。
当我尝试使用 Google Apps 帐户发送一些电子邮件时,我收到此错误:
EOFError: end of file reached
使用免费的 Gmail 帐户,电子邮件发送成功。
这是我的 Mailer 配置:
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "devsup.com.br'",
user_name: "admin@devsup.com.br",
password: "password",
enable_starttls_auto: true,
authentication: "plain"
}
有人知道我必须做什么吗?我必须在我的 Google Apps 帐户中进行一些配置?
谢谢! :)
我们遇到了类似的问题。尝试将域设置为 gmail.com
,如下所示:
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "gmail.com",
user_name: "admin@devsup.com.br",
password: "password",
enable_starttls_auto: true,
authentication: "plain"
}
编辑: 或者尝试确保删除域中的拼写错误。您的域中现在有一个额外的单引号。