作者:阳光明媚-在路上 | 来源:互联网 | 2023-08-12 14:56
IwritethispostjusttoseeifIcangetsomeclarificationsregardingemailsendingconceptsina
I write this post just to see if I can get some clarifications regarding email sending concepts in an AWS EC2 instance.
我写这篇文章只是为了看看我是否可以对AWS EC2实例中的电子邮件发送概念做出一些澄清。
This is related with this other post Rails does not send emails on AWS
这与其他帖子有关Rails不会在AWS上发送电子邮件
I´m developing a Rails application that sends emails to customers (such as confirmation or information emails).
我正在开发一个向客户发送电子邮件的Rails应用程序(例如确认或信息电子邮件)。
I dont know exactly which email service is using Rails. I didn´t install any particular gem. But the emails are been sent perfectly in development environment (Ubuntu).
我不确切知道哪个电子邮件服务正在使用Rails。我没有安装任何特定的宝石。但是电子邮件已经在开发环境(Ubuntu)中完美发送。
When I deploy to my production environment (AWS EC2 instance). This functionality is not working. You can see the error details in the post I provided above. The error is related with some smtp connection refused
.
当我部署到我的生产环境(AWS EC2实例)时。此功能无效。您可以在我上面提供的帖子中看到错误详细信息。该错误与某些smtp连接被拒绝有关。
So, I have read some other posts but Im confused. Is it mandatory to use the AWS SES service in order to send emails from EC2 instance? Or it is just a problem related to security credentials (maybe I just need to open the smtp 25 port). Do I need to install any email client or server?
所以,我已经阅读了其他一些帖子,但我很困惑。是否必须使用AWS SES服务才能从EC2实例发送电子邮件?或者它只是与安全凭证相关的问题(也许我只需要打开smtp 25端口)。我是否需要安装任何电子邮件客户端或服务器?
2 个解决方案