有人在 EngineYard 上成功设置了电子邮件设置吗?
我正在尝试向我的应用程序添加电子邮件功能(忘记密码、通知等),并且我正在使用 EngineYard 进行托管。我已在测试环境中成功配置了电子邮件,但在上传到 EY 后,它似乎在生产中出错。我不支付他们的支持费用,并且唯一的资源有点模糊(或者超越我)。
我很想知道在 EY 上使用电子邮件时是否需要添加任何特定文件、设置服务器等。我正在使用 Google 应用程序,所以我认为这就像在生产中添加相同的代码块进行测试一样简单,但情况似乎并非如此。
I am attempting to add email capabilities to my app (forgotten password, notifications, etc.) and I am using EngineYard for hosting. I have successfully configured email in my test environment but upon uploading to EY it seems to error out in Production. I don't pay for their support and the only resource is a bit vague (or beyond me).
I am curious to know if there is any specific file additions, server set up etc. that is needed when using email on EY. I am using Google apps so I thought it would be as easy as adding the same code block for test in production but doesn't seem to be the case.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我的 Google 应用程序配置,位于 .../config/environments/production.rb:
注意,出于安全考虑,我实际上将密码保存在一个单独的文件中,并有代码将其修补到启动时的设置中,但我认为这会分散人们对回应实质内容的注意力。
希望有帮助。
Here's my config for Google apps, in .../config/environments/production.rb:
Note, for the security minded out there, I actually keep the password in a separate file and have code to patch it into the settings on launch, but I figured that would distract from the meat of the response.
Hope that helps.