Overview

To send emails from Omeka S running on Amazon Lightsail, it appears that email sending configuration is required. This article introduces how to use Amazon SES.

The following forum discussion was helpful.

Amazon SES Configuration

Configure Amazon SES by referring to the following site.

Omeka S Configuration

Edit the Omeka S local.config.php file as follows.

<?php
return [
    'logger' => [
        // Log settings (as needed)
    ],
    'mail' => [
        'transport' => [
            'type' => 'smtp', // Use SMTP
            'options' => [
                'name' => 'ses-smtp-user',         // Any name
                'host' => 'email-smtp.us-east-1.amazonaws.com',  // SES SMTP server endpoint
                'port' => 587,                                 // Port supported by SES (e.g., 587)
                'connection_class'  => 'plain',                // Authentication type
                'connection_config' => [
                    'username' => 'your-ses-smtp-username',   // SES SMTP username
                    'password' => 'your-ses-smtp-password',   // SES SMTP password
                    'ssl'      => 'tls',                      // SSL type ('tls' recommended)
		    'use_complete_quit' => true,
                ],
            ],
        ],
    ],
    // Other settings...
];
  • For host, specify the Amazon SES SMTP server endpoint corresponding to the AWS region you are using. The example uses the us-east-1 region endpoint, but change it as needed.
  • For username and password, use the SMTP credentials generated in Amazon SES.

Summary

We hope this is helpful when using Omeka S with Amazon Lightsail.