使用 Windows 电子邮件服务器进行 Heroku 设置
因此,我建立并运行了我的第一个 Ruby 网站,并希望它能够发送电子邮件。不幸的是,它托管在 Heroku 上,而 Heroku 没有免费使用的电子邮件服务器。
我拥有的是 Windows 2008 虚拟服务器,可以运行我拥有的其他网站。这些网站已经使用了 Windows 服务器一部分的 smtp 服务器。他们只需让我的 web.config 指向自身作为服务器即可访问(asp.net 项目),
<smtp>
<network host="localhost" port="25" />
</smtp>
我假设它在用户登录时对其进行身份验证,这就是当前允许执行此操作的方式。如果我想从 heroku 的项目中使用它,我将如何去做。
我需要在 Windows 中进行哪些 IIS/SMTP 服务器设置? 我需要什么代码才能在我的 ruby 项目中使用它?
提前致谢
So I have my first ever Ruby website up and running and would like it to send out emails. Unforantately it is hosted on Heroku which doesn't have a email server which is free to use.
What I do have is a windows 2008 virtual server that runs other websites I have. These websites already make use of the smtp server that is part of windows server. They have access (asp.net projects) by simply having my web.config pointing at itself as the server
<smtp>
<network host="localhost" port="25" />
</smtp>
I assume it is authenticating it as the user logged in, and this is how is currently is allowed to do it. If I wanted to make use of it from the project on heroku, how would I go about doing that.
What IIS/SMTP server setup would I need to do in windows?
And What code do I need to go about making use of it in my ruby project?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我强烈建议您查看 SendGrid 插件。您每天可以获得 200 封电子邮件以及所有相关的管理服务,而您的地球币恰好为零。如果您需要更多,它的成本仍然非常低。
如果您运行自己的服务器,则需要照顾它,担心连接性和延迟。
Bamboo/Aspen for Rails 上的 SendGrid 几乎为零设置,在 Cedar 上只有少量设置。
I would really recommend that you look at the SendGrid add-on. You get 200 emails / day and all the associated management for exactly zero of your earth dollars. Should you need more than that it's still very low cost.
If you run your own server, you need to look after it, worry about connectivity, and latency.
SendGrid on Bamboo/Aspen for Rails is pretty much zero setup, and only a small amount on Cedar.