如何从amazon EC2发送电子邮件?

时间:2023-01-26 12:42:10

Recently I have switched my hosting from bluehost to amazon ec2. I need to know, how my application would be able to send the emails from amazon ec2? Do I need to install any smtp server on my instance or I have to configure amazon SES? Please help.

最近我把我的主机从bluehost切换到亚马逊ec2。我需要知道,我的应用程序如何能够从amazon ec2发送电子邮件?我是否需要在我的实例上安装任何smtp服务器,或者我必须配置amazon SES?请帮忙。

thanks in advance.

提前致谢。

1 个解决方案

#1


12  

Noone gets to send email directly out of EC2 without signing up to SES and working within its constraints. Good grief, AWS would just be one enormous and thoroughly blackholed spam factory without SES in place.

没有注册到SES并在其约束下工作,没有人可以直接从EC2发送电子邮件。好悲痛,AWS只是一个没有SES的庞大而彻底的黑洞垃圾邮件工厂。

Might also be worth looking at whether AWS's SNS might be a better solution for whatever you're trying to do.

也许值得一提的是,AWS的SNS是否可以成为您尝试做的任何事情的更好解决方案。

Update: it is possible to send email directly from AWS, but you'll want to let AWS know by filling in a form so that they can whitelist the IP.

更新:可以直接从AWS发送电子邮件,但您希望通过填写表单让AWS知道,以便他们可以将IP列入白名单。

Update: More up to date treatment of this topic in this question.

更新:此问题中有关此主题的最新处理。

#1


12  

Noone gets to send email directly out of EC2 without signing up to SES and working within its constraints. Good grief, AWS would just be one enormous and thoroughly blackholed spam factory without SES in place.

没有注册到SES并在其约束下工作,没有人可以直接从EC2发送电子邮件。好悲痛,AWS只是一个没有SES的庞大而彻底的黑洞垃圾邮件工厂。

Might also be worth looking at whether AWS's SNS might be a better solution for whatever you're trying to do.

也许值得一提的是,AWS的SNS是否可以成为您尝试做的任何事情的更好解决方案。

Update: it is possible to send email directly from AWS, but you'll want to let AWS know by filling in a form so that they can whitelist the IP.

更新:可以直接从AWS发送电子邮件,但您希望通过填写表单让AWS知道,以便他们可以将IP列入白名单。

Update: More up to date treatment of this topic in this question.

更新:此问题中有关此主题的最新处理。