- Check your Email Deliverability (test if your emails are being delivered to Inbox or Spam folder at Gmail, Outlook and etc).
- Check your Sender Score of your Email Server (IP reputation)
- Supports multiple accounts
- Run tests by schedule
- Receive email reports
Define your SMTP accounts here in the following format:
[
{
"note": "gsuite my email",
"dsn": "smtp://[email protected]:[email protected]:587",
"fromName": "Sender name",
"fromEmail": "[email protected]"
}
]
The password must be urlencoded (%2B instead of +, %20 instead of space and etc).
Put your email contents into this file.
This setup runs a glockapps tests with email report by a cron schedule once a week. Create a file called docker-compose.yml with the content below:
version: "3.2"
services:
spamtest:
image: karser/spamtest:latest
restart: unless-stopped
environment:
GLOCKAPPS_KEY: 'XXXXXXXXX'
ACCOUNTS_PATH: '/accounts.json'
SUBJECT: 'Your test email subject'
BODY_PATH: '/body.html'
REPORT_DSN: 'smtp://[email protected]:[email protected]:587'
REPORT_FROM_EMAIL: '[email protected]'
REPORT_FROM_NAME: 'Spamtest'
RECIPIENT_EMAIL: '[email protected],[email protected]'
CRON_CONFIG: |
0 0 * * 1 /var/app/bin/console app:spamtest >> /var/log/cron.log 2>&1
0 8 * * 1 /var/app/bin/console app:report >> /var/log/cron.log 2>&1
volumes:
- ./body.html:/body.html:ro
- ./accounts.json:/accounts.json:ro
command: ['/usr/local/bin/cron-entrypoint']
docker-compose up -d
docker exec -it spamtest_spamtest_1 sh
First you want to make sure that your accounts config is correct and emailable.
bin/console app:spamtest --validate-only
bin/console app:spamtest
After a while run the report script
bin/console app:report
git clone
composer install
First you want to make sure that your accounts config is correct and emailable.
bin/console app:spamtest \
--verify [email protected] \
--accounts-path=/path/to/accounts.json \
--subject='Your test email subject' \
--body-path=/path/to/body.html
bin/console app:spamtest \
--glockapps-key=XXXXXXXXX
--accounts-path=/path/to/accounts.json \
--subject='Your test email subject' \
--body-path=/path/to/body.html
bin/console app:spamtest \
--glockapps-key=XXXXXXXXX
--accounts-path=/path/to/accounts.json \
--report-dsn='smtp://[email protected]:[email protected]:587' \
[email protected] \
--report-from-name=Spamtest \