我正在将 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 实例发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
在 SELECT(MYSQL/PHP) 中加入 2 个表Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 个表)
如何使<option selected=“selected">由How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 设置?)
使用 PHP 中的数组自动填充选择框Auto populate a select box using an array in PHP(使用 PHP 中的数组自动填充选择框)
PHP SQL SELECT where like search item with multiple wordsPHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode 从 MSSQL-SELECT 产生 JSON_ERROR_UTF8json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 从 MSSQL-SELECT 产生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(),名称 ASCMySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名称 ASC)