smtp

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package smtp provides the transport implementation for SMTP.

Index

Constants

View Source
const (
	// Provider is the provider name for SMTP transport.
	Provider = "smtp"
)

Variables

This section is empty.

Functions

func AutowireTransport

func AutowireTransport(_ context.Context, cfg map[string]interface{}) (postdog.Transport, error)

AutowireTransport autowires SMTP transport from the given configuration.

func NewTransport

func NewTransport(host string, port int, username, password string) postdog.Transport

NewTransport initializes an SMTP transport.

func NewTransportDialer

func NewTransportDialer(dialer *mail.Dialer) postdog.Transport

NewTransportDialer initializes an SMTP transport with a custom dialer.

func Register

func Register(cfg *autowire.Config)

Register registers the transport factory in the autowire config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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