This filter allows you to send an e-mail. When a Message
arrives to the filter, we can decide if use the main
field of the Message
as URL on the request, or its content for the HTTP data.
This behaviour can be handled with the parameters.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
body | STRING | empty | the body of the e-mail (supports Golang templates) |
username | STRING | empty | username for the host authentication |
password | STRING | empty | password for the host authentication |
host | STRING | empty | host server used to send the e-mail |
port | STRING | empty | port of the host server |
fromAddr | STRING | empty | source e-mail address |
fromName | STRING | empty | source name address |
to | STRING | empty | destination e-mail address (supports multi-destination, comma separated) |
subject | STRING | empty | subject field of the e-mail to send |
use_auth | BOOL | “false” | if “true” the sendmail server will receive the credentials specified in username and password fields |
... | http(url="{{ .main }}", cookies="exported.json", headers="{\"Content-type\": \"application/json\"}") | ...
Every default’s value can be set in the configuration, creating a section with the name of the
more info
Filter
/Feeder
.more info
Output
The input Message
is always propagated to the next filter without changes.
Examples
Soon…