問題描述
我正在將 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.
- 已創建 SES 帳戶.
- 使用簡單的郵件功能.
- 在安全組中啟用端口 25.
推薦答案
雖然您的問題與 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模板網!