Send Mail Using Amazon EC2 Instance

前端 未结 4 1763
长发绾君心
长发绾君心 2021-02-03 11:24

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

4条回答
  •  名媛妹妹
    2021-02-03 12:07

    If you are using AWS SES you need to make sure you validate the account first:

    http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html

    With the exception of addresses containing labels (see below), you must verify each email address that will be used as a "From" or "Return-Path" address for your messages. The entire email address is case-sensitive. For example, if you verify sender@example.com, you cannot send emails from sender@EXAMPLE.com unless you verify sender@EXAMPLE.com also. (Domain verification, however, is case-insensitive. For more information, see Verifying Domains in Amazon SES.)

    Until you are granted production access to Amazon SES, you must also verify the email address of every recipient except for the recipients provided by the Amazon SES mailbox simulator. For more information about the mailbox simulator, see Testing Amazon SES Email Sending. For more information about production access, see Requesting Production Access to Amazon SES.

提交回复
热议问题