使用Amazon EC2实例发送邮件 [英] Send Mail Using Amazon EC2 Instance
问题描述
我正在为我的一个项目使用Amazon EC2实例,我已经在Linux服务器上安装了LAMP,现在,当我尝试使用简单功能发送电子邮件时,它不发送电子邮件,也没有给出任何错误。
我到目前为止所做的事情。
- 已创建SES帐户。
- 使用了简单邮件功能。
- 在安全组中启用了端口25。
尽管您的问题与Sendmail有关,但您是否尝试过遵循Amazon文档?
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send- email-smtp-app.html
这使用后缀,但这似乎是一个更好的替代方法,并且有很多可用的帮助。
您也可以使用SMTP,因为Amazon SES支持此功能:
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp.html
我知道这并不能直接回答您的问题。您可能只需要在 php.ini
中配置 mail
设置。
I am using Amazon EC2 Instance for one of my project, I have installed LAMP on linux server and now while I am trying to send email using simple function it is not sending email also is not giving any error for that.
Things I have done so far.
- Created SES account.
- Used simple mail function.
- Enabled port 25 in security groups.
Although your problem relates to Sendmail have you tried following Amazons Documentation?
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp-app.html
This uses postfix but it seems like a better alternative and there's help readily available for it.
You also can use SMTP as Amazon SES supports this:
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp.html
I know this doesn't directly answer your question. You might just need to configure the mail
settings in php.ini
.
这篇关于使用Amazon EC2实例发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!