Documentation ¶
Index ¶
- type Client
- func (c *Client) GetCommandLog() smtp_commands.CommandLog
- func (c *Client) GetHelloBanner() (banner string, tlsVersion string)
- func (c *Client) GetLastCommand() (*smtp_commands.Commands, *lib.SmtpError)
- func (c *Client) SendTestEmail(email *test_email.Email) *lib.SmtpError
- func (c *Client) SpoofingTest(from string) *lib.SmtpError
- type Conn
- type SmtpOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
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 (*Client) GetLastCommand ¶
func (*Client) SendTestEmail ¶
Try to send the test email
type Conn ¶
func NewConnection ¶
type SmtpOperation ¶
type SmtpOperation func() error
Click to show internal directories.
Click to hide internal directories.