Mailer micro-service for vandeas
2.6K
Mailer micro-service for vandeas
To run this project, you will need to add the following environment variables
CONTACT_FORM_CONFIGS_FOLDERMAIL_CONFIGS_FOLDERTEMPLATES_FOLDERGOOGLE_RECAPTCHA_SECRETSENDGRID_API_KEYCONTACT_FORM_CONFIGS_FOLDER configuration files{
"id": "UUID",
"dailyLimit": 10,
"destination": "[email protected]",
"sender": "[email protected]",
"threshold": 0.5, // Recapthca score thresold
"lang": "fr", // ISO 639-1
"subjectTemplate": "New mail from {{form.firstName}}"
}
Filename does not have to respect any convention.
MAIL_CONFIGS_FOLDER configuration files{
"id": "UUID",
"sender": "[email protected]",
"subjectTemplate": "New mail from {{form.firstName}}"
}
Filename should be {{UUID}}.hbs (same UUID as the id field in the Contact Form or Mail config)
POST /v1/mail/contact
| Attribute | Type | Description |
|---|---|---|
id | string | Required. Your contact form config id |
fullName | string | Required Full name of the person that sent the form |
email | string | Required Email of the person that sent the form |
content | string | Required Content of the message |
recaptchaToken | string | Required Result token/secret of recaptcha |
POST /v1/mail
| Attribute | Type | Description |
|---|---|---|
id | string | Required. Your mail config id |
email | string | Required Email of the person to sent the mail to |
attributes | Map<string, string> / JSON Object | Required Attributes to hydrate the mail template |
Content type
Image
Digest
sha256:553c9b48c…
Size
180.3 MB
Last updated
about 2 months ago
docker pull lotuxpunk/hermes