WARNING: A new version of ActivityPub Mailer has been integrated into the colibris.social code base. This repository is now deprecated.
Requirements:
- Node (v13+ recommended)
- Docker
- Docker-compose
If you don't have access to a Jena Fuseki instance, you can create a local one with Docker using the following commands:
docker-compose up
Go to http://localhost:3030
and create a new dataset called mailer
.
Edit the .env
file (or create a .env.local
file which will overwrite the default configurations) to configure the SMTP account, as well as the actor the Match Bot will be following.
# Email
SEMAPPS_FROM_EMAIL=account@test.com
SEMAPPS_FROM_NAME=Test account
SEMAPPS_SMTP_HOST=
SEMAPPS_SMTP_USER=
SEMAPPS_SMTP_PASS=
# Match Bot
SEMAPPS_FOLLOWING=
npm install
npm run dev
- Create a
mailerTest
dataset in your Jena Fuseki instance - Run an instance of colibris.social in port 3000 with these two actors:
- Run the command
npm run test
By default this will use the ethereal.email service to test the emails. The URL of the generated emails will be displayed in the console at the end of the test.