7758f42f6b
* remove single case switch remove duplicate cases Signed-off-by: SammyOina <sammyoina@gmail.com> * remove single case switch \n format comments Signed-off-by: SammyOina <sammyoina@gmail.com> * graceful exit on main func Signed-off-by: SammyOina <sammyoina@gmail.com> * remove fatal from imported packages Signed-off-by: SammyOina <sammyoina@gmail.com> * reuse exit function Signed-off-by: SammyOina <sammyoina@gmail.com> * return nill for empty configs Signed-off-by: SammyOina <sammyoina@gmail.com> * return nil for config file not found Signed-off-by: SammyOina <sammyoina@gmail.com> --------- Signed-off-by: SammyOina <sammyoina@gmail.com> Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com> |
||
---|---|---|
.. | ||
README.md | ||
doc.go | ||
email.go |
README.md
Mainflux Email Agent
Mainflux Email Agent is used for sending emails. It wraps basic SMTP features and provides a simple API that Mainflux services can use to send email notifications.
Configuration
Mainflux Email Agent is configured using the following configuration parameters:
Parameter | Description |
---|---|
MF_EMAIL_HOST | Mail server host |
MF_EMAIL_PORT | Mail server port |
MF_EMAIL_USERNAME | Mail server username |
MF_EMAIL_PASSWORD | Mail server password |
MF_EMAIL_FROM_ADDRESS | Email "from" address |
MF_EMAIL_FROM_NAME | Email "from" name |
MF_EMAIL_TEMPLATE | Email template for sending notification emails |
There are two authentication methods supported: Basic Auth and CRAM-MD5.
If MF_EMAIL_USERNAME
is empty, no authentication will be used.