smtp

package
v0.0.0-...-81dd437 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

SMTP Notifier

SMTP Notifier implements notifier for send SMTP notifications.

Configuration

The Subscription service using SMTP Notifier is configured using the environment variables presented in the following table. Note that any unset variables will be replaced with their default values.

Variable Description Default
MF_JAEGER_URL Jaeger server URL localhost:6831
MF_BROKER_URL Message broker URL nats://127.0.0.1:4222
MF_EMAIL_HOST Mail server host localhost
MF_EMAIL_PORT Mail server port 25
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 email.tmpl
MF_AUTH_GRPC_URL Auth service gRPC URL localhost:8181
MF_AUTH_GRPC_TIMEOUT Auth service gRPC request timeout in seconds 1s
MF_AUTH_CLIENT_TLS Auth client TLS flag false
MF_AUTH_CA_CERTS Path to Auth client CA certs in pem format

Usage

Starting service will start consuming messages and sending emails when a message is received.

Documentation

Overview

Package smtp contains the domain concept definitions needed to support Mainflux SMTP notifications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(agent *email.Agent) notifiers.Notifier

New instantiates SMTP message notifier.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL