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
- Host: GitHub
- URL: https://github.com/liquidlight/mailgun-delivery-check
- Owner: liquidlight
- Created: 2024-04-11T14:06:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T14:14:44.000Z (about 2 years ago)
- Last Synced: 2025-10-30T06:28:43.983Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```