Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

srosset81/activitypub-mailer

Repository files navigation

WARNING: A new version of ActivityPub Mailer has been integrated into the colibris.social code base. This repository is now deprecated.

SemApps

ActivityPub Mailer

Getting started

Requirements:

  • Node (v13+ recommended)
  • Docker
  • Docker-compose

1. Launch Jena Fuseki

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.

2. Edit the configurations

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=

3. Launch in dev mode

npm install
npm run dev

Testing

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.