An HTTP microservice that sends email. The service needs to connect to an SMTP server.
150
Content-Type (Required): Must be "application/json" Mime-Type (Required): use "html" to send html based content, or any other value will send a simple text email (but do not leave it empty)
The content must be a json object comprising of the following fields (all required): from (single string): the sender's email address (must match one of authenticated accounts in the smtp server) to (single string): the recepient email address. subject: the subject of the email message. message: the message body content. ( you need to include the tags yourself in case of sending html content.)
./mvnw clean package
docker build . -t user/repo:versionTag
Replace uesr/repo:versionTag with your own info.
SMTP_HOST "This will be 'smtp' if not provided"
SMTP_PORT "This will be '587' if not provided"
SMTP_USERNAME "This is required if SMTP_Auth=true"
SMTP_PASSWORD "This is required if SMTP_Auth=true"
SMTP_AUTH "This will be 'true' if not provided"
SMTP_TLS. "This will be 'true' if not provided"
LISTEN_PORT "This will be '80' if not provided"
docker run -d --name=<DESIRED_CONTAINER_NAME> -e SMTP_HOST=<YOUR_SMTP_SERVER_ADDRESS> -e SMTP_USERNAME=<USERNAME> -e SMTP_PASSWORD=<YOUR_SMTP_PASSWORD> hussain9x/microsendmail:0.4
Replace the environment variables' values and ContainerName with your own values.
Content type
Image
Digest
Size
210.7 MB
Last updated
over 5 years ago
docker pull hussain9x/microsendmail:0.4