freemaild

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(config *oauth2.Config) *http.Client

Retrieve a token, saves the token, then returns the generated client.

func GetOauthConfig

func GetOauthConfig(credentialFile string) (*oauth2.Config, error)

Types

type Config

type Config struct {
	CredentialFile string
	SenderEmail    string
	RecipientEmail string
	Address        string
	Port           int64
	TLS            map[string]string
}

Config for Freemaild

type Freemaild

type Freemaild struct {
	// contains filtered or unexported fields
}

Freemaild is an SMTP to Gmail Relay

func New

func New(cfg *Config) (*Freemaild, error)

New creates a new instance of Freemaild

func (*Freemaild) Run

func (f *Freemaild) Run()

Run the daemon

Jump to

Keyboard shortcuts

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