mail_sender

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*smtp.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(server *lib.TransportServer, localName string, connTimeout time.Duration, optTimeout time.Duration, tlsMinVersion uint16) (*Client, *lib.SmtpError)

Create new client to send the test email and test the SMTP server

func (*Client) GetCommandLog added in v1.2.0

func (c *Client) GetCommandLog() smtp_commands.CommandLog

func (*Client) GetHelloBanner

func (c *Client) GetHelloBanner() (banner string, tlsVersion string)

func (*Client) GetLastCommand

func (c *Client) GetLastCommand() (*smtp_commands.Commands, *lib.SmtpError)

func (*Client) SendTestEmail

func (c *Client) SendTestEmail(email *test_email.Email) *lib.SmtpError

Try to send the test email

func (*Client) SpoofingTest

func (c *Client) SpoofingTest(from string) *lib.SmtpError

Try to send the test email

type Conn

type Conn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(conn net.Conn) *Conn

func (*Conn) Read

func (c *Conn) Read(b []byte) (n int, err error)

type SmtpOperation

type SmtpOperation func() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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