mail

package
v0.0.0-...-195b10e Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFileDidNotExistError

type ConfigFileDidNotExistError struct{}

ConfigFileDidNotExistError is thrown if the config file did not exist initially when the function was called, and it has now been created and the user should modify the default values

func (ConfigFileDidNotExistError) Error

type Message

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

Message represents a simple email message with a header and body to be sent

func (*Message) AddLineToBody

func (m *Message) AddLineToBody(s string)

AddLineToBody adds a new line with the message s in the body

func (*Message) Send

func (m *Message) Send() error

Send sends the messsage using the settings set in the configuration file config/mail.ini

func (*Message) SetSubject

func (m *Message) SetSubject(s string)

SetSubject sets the message's subject to s

Jump to

Keyboard shortcuts

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