mail

package
v0.0.0-...-d774829 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mail provides SMTP utility.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultUsername

func GetDefaultUsername() string

GetDefaultUsername returns default username.

func Send

func Send(opt Option) error

Send sends an email with default configuration.

Types

type Option

type Option struct {
	To          string
	CC          []string
	FromName    string
	FromAddress string
	Subject     string
	HTMLBody    string
	TextBody    string
}

Option corresponds to mail header.

Jump to

Keyboard shortcuts

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