Is it possible to use Amazon Simple mail system (Amazon SES) in my own application on a GoDaddy hosting plan? [closed]
-
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()
)
);
Не связан с StackOverflow