简体   繁体   English

不使用smtp从Rails Web应用程序发送电子邮件

[英]sending e-mail from Rails Web app without using smtp

I just try to send an e-mail to signed up user from my rails web app. 我只是尝试从Rails Web应用发送电子邮件给注册用户。 Do I need to use any smtp server or can I just send a mail from my app.? 我是否需要使用任何smtp服务器,还是可以仅从应用程序发送邮件? Do you have any suggestion idea about this? 您对此有什么建议吗? Thanks for returns :) 感谢您的回报:)

Yes, you need an SMTP server for sending mail. 是的,您需要一个SMTP服务器来发送邮件。

There are two options, first is to use a mail server provided by someone else, eg the SMTP of the company that provides your server or their ISP. 有两种选择,第一种是使用其他人提供的邮件服务器,例如,提供您的服务器或其ISP的公司的SMTP。

The other option is to install a MTA (Mail Transfer Agent) on your server, one popular options is postfix . 另一种选择是在服务器上安装MTA(邮件传输代理),一种流行的选择是postfix See here for instructions for Ubunutu. 有关Ubunutu的说明,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM