An open API service indexing awesome lists of open source software.

https://github.com/liquidlight/mailgun-delivery-check

Check a message with a specific string has been delivered with Mailgun
https://github.com/liquidlight/mailgun-delivery-check

Last synced: about 1 month ago
JSON representation

Check a message with a specific string has been delivered with Mailgun

Awesome Lists containing this project

README

          

# Mailgun Verification

Searches recent emails sent by Mailgun for a predefined string.

Used for testing purposes - for example, filling a contact form in and ensuring the email was sent

## Usage

There are 3 environment variables needed to run, with 1 optional

- `TEXT_TO_FIND` - The text to look for in the email (uses PHP's `str_contains`)
- `MAILGUN_API_KEY` - Your API Key
- `MAILGUN_DOMAIN` - The domain set in Mailgun
- `MAILGUN_IS_EU` - si your Mailgun region EU?

## Running Locally

You can run locally with the following:

```
docker run --env TEXT_TO_FIND='text to find' --MAILGUN_API_KEY='[API KEY]' --MAILGUN_DOMAIN='domain' ghcr.io/liquidlight/mailgun-delivery-check
```