Skip to content

fluvio-community/smtp-connector

Repository files navigation

Fluvio SMTP Connector

Fluvio community Simple Mail Transfer Protocol (SMTP)

Sink Connector

Reads from Fluvio topic and writes to SMTP.

Configuration

Option default type description
host - String SMTP server
port - Number SMTP server port - (465 submission w/ auth)
user - String Username for login - must be over TLS - e.g. STARTTLS over 25 or directly over TLS port
password - String Password for login - must be over TLS
explicit_tls false bool Require Explicit TLS e.g. STARTTLS over plaintext SMTP port
implicit_tls false bool Require Implicit TLS by ensuring the SMTP session is using TLS at all times
dangerous_allow_cleartext false bool Allow dangerously cleartext SMTP - Please do not use unless testing

Note: Implicit TLS always takes credence over Explicit TLS (STARTTLS) and generally one should use implicit TLS if available.

Usage Example

See config-example.yaml for an example reflecting the above.

Run connector locally using cdk tool (from root directory or any sub-directory):

fluvio install cdk

cdk deploy start --config config-example.yaml

cdk deploy list # to see the status
cdk deploy log my-smtp-connector # to see connector's logs

Adding records

The JSON to use to send an e-mail via SMTP is:

{
 "subject": "Testing",
 "body": "test",
 "from":
   {"name": "From Testing",
    "address": "[email protected]"},
 "to":
   {"name": "To Name",
    "address": "[email protected]"}
}

License

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

SMTP Connector for Fluvio

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages