server

package
v0.0.0-...-081b7ad Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 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 Mail

type Mail struct {
	SenderID string
	ToIds    []string
	Subject  string
	Body     string
}

Mail concept

func (*Mail) BuildMessage

func (mail *Mail) BuildMessage() string

BuildMessage builds a msg

type SMTPServer

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

SMTPServer concept

func NewSMTPServerConnection

func NewSMTPServerConnection(host string, port string, senderID string, password string) *SMTPServer

NewSMTPServerConnection a new mail connection

func (*SMTPServer) Close

func (s *SMTPServer) Close()

Close connection to smtp server

func (*SMTPServer) Connect

func (s *SMTPServer) Connect() error

Connect stablishes a connection to the server

func (*SMTPServer) SendEmail

func (s *SMTPServer) SendEmail(mail Mail) error

SendEmail send an email

func (*SMTPServer) ServerName

func (s *SMTPServer) ServerName() string

ServerName returns server name

Jump to

Keyboard shortcuts

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