PHP code example of onethirtyone / aws-s3-mime-handler
1. Go to this page and download the library: Download onethirtyone/aws-s3-mime-handler library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
onethirtyone / aws-s3-mime-handler example snippets
MessageCollector::fromBucket()->each(function ($message) {
$message->id; // The message file name
$message->to; // Message recipient
$message->from; // Message Sender
$message->subject; // Message Subject
$message->body; // The body of the message (plain text)
});
$message = MessageCollector::fromBucket()->first();
$message->delete();