我正在将 Amazon EC2 实例用于我的一个项目,我已经在 linux 服务器上安装了 LAMP,现在当我尝试使用简单功能发送电子邮件时,它没有发送电子邮件,也没有为此给出任何错误.
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.
虽然您的问题与 Sendmail 有关,但您是否尝试过遵循 Amazons 文档?
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
这使用了 postfix,但它似乎是一个更好的替代方案,并且有可用的帮助.
This uses postfix but it seems like a better alternative and there's help readily available for it.
您也可以使用 SMTP,因为 Amazon SES 支持此功能:
You also can use SMTP as Amazon SES supports this:
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp.html
我知道这并不能直接回答您的问题.您可能只需要在 php.ini
中配置 mail
设置.
I know this doesn't directly answer your question. You might just need to configure the mail
settings in php.ini
.
这篇关于使用 Amazon EC2 实例发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!