Skip to content

Simple server that allow clients to send user management related emails

License

Notifications You must be signed in to change notification settings

fxbox/users-email-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

users-email-server

Simple server that allow clients to send user management related emails.

Only one endpoint is available so far:

POST /v1/invitation HTTP/1.1
Content-Type: application/json
{
  "email": "[email protected]",
  "url": "https://local.<hash>.knilxof.org/whatever"
}

This endpoint allows the client to send a invitation to a user to allow her to activate her account. The body of the request must contain the email of the invitation recipient and a URL from a domain that must be known to the server (i.e. https://.knilxof.org/) and that will be added to the email body.

In the future, we may want to add new endpoints for extra functionality such as password reset emails, for instance.

Usage

cargo run -- --email-server smtp.gmail.com --email-user [email protected] --email-password apassword --email-from Manolo -u "https.*\b(local.*.knilxof.org.*)|https.*\b(remote.*.knilxof.org.*)"

Note: If you want to use Gmail, you'll need to allow less secure apps to access your account

About

Simple server that allow clients to send user management related emails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages