Skip to content

Commit

Permalink
feat: Implement AWS SES email adapter
Browse files Browse the repository at this point in the history
Signed-off-by: Souptik Datta <[email protected]>
  • Loading branch information
Souptik2001 committed Oct 13, 2024
1 parent 1e4871a commit 9ced225
Show file tree
Hide file tree
Showing 7 changed files with 1,265 additions and 4 deletions.
34 changes: 33 additions & 1 deletion .tests/test-mu-plugin/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,36 @@
// print_r( $test );
// echo '</pre>';
// exit();
// } );
// } );

/**
* Email: AWS SES Messaging - with headers.
*/
// add_action( 'init', function () {
// $test = \Souptik\AIOMessaging\Email\send(
// [ '[email protected]' ],
// 'Yay its working!',
// '<strong>This is some</strong> long mail body.',
// '',
// '[email protected]', // Use verified email address for the AWS credential you are using.
// [
// 'reply_to_name' => 'Reply Test',
// 'reply_to_email' => '[email protected]',
// 'cc' => [
// [
// 'name' => 'CC Test',
// 'email' => '[email protected]',
// ],
// ],
// 'attachments' => [
// 'SameFileDifferentName.php' => trailingslashit( WP_CONTENT_DIR ) . '/mu-plugins/test-all-in-one-messaging.php',
// ],
// ],
// 'aws_ses'
// );
// echo '<h4>Email: AWS SES Messaging -- Triggered from `test-mu-plugin`</h4>';
// echo '<pre>';
// print_r( $test );
// echo '</pre>';
// exit();
// } );
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "souptik/all-in-one-messaging",
"description": "Limitless Communication: All-in-One, super scalable, messaging Solution for WordPress.",
"require": {
"utopia-php/messaging": "^0.10.0"
"utopia-php/messaging": "^0.10.0",
"aws/aws-sdk-php": "^3.324"
},
"require-dev": {
"roots/wordpress": "6.6.2",
Expand Down
Loading

0 comments on commit 9ced225

Please sign in to comment.