Is it possible to use Amazon Simple mail system (Amazon SES) in my own application on a GoDaddy hosting plan? [closed]

StackOverflow https://stackoverflow.com/questions/8787221

  •  15-04-2021
  •  | 
  •  

質問

In one of my web application in PHP I likes to integrate Amazon Mail system . When user completed the registration process I wanna send a mail and also weekly news letters and all ... Is it possible with Amazon mail service ? I am using GoDaddy hosting plan

役に立ちましたか?

解決

Yes it is possible to use: From: Release: AWS SDK for PHP 1.2.3

Release: AWS SDK for PHP 1.2.3

This release adds support for Amazon Simple Email Service.

The following sample demonstrates how to send an email:

$email = new AmazonSES();

$response = $email->send_email(
    'no-reply@amazon.com', // Source (aka From)
    array('ToAddresses' => 'nobody@amazon.com'), // Destination (aka To)
    array( // Message (short form)
        'Subject.Data' => 'Email Test',
        'Body.Text.Data' => 'This is a simple test message ' . time()
    )
);
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top