sendmail

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package sendmail provides the functionnality to send emails thru smtp server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPServer

type SMTPServer struct {
	Expeditor string // from as "John Doe <john@doe.com>"
	URL       string // server url with port if neccessary server:999
	ID        string // login
	PW        string // password
	Host      string // server address
	Disclaim  string // disclaimer text at the end of all messages
}

SMTPServer defines all information to send mail via smtp server

func (SMTPServer) SendMail

func (s SMTPServer) SendMail(dest []string, subject string, text []byte, html []byte, attachfile []string) error

SendMail sends text or html with attachments

Jump to

Keyboard shortcuts

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