Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReceivedValues ¶
type ReceivedValues struct { Usernames []string Passwords []string Froms []string Rcpts []string Datas [][]byte }
ReceivedValues contains all the data received from the SMTP server
func StartMockSMTPServer ¶
func StartMockSMTPServer() (port int, receivedValues *ReceivedValues, cancelFunc func(), err error)
Start a mock SMTP server on a random port
Returns: port: the port the server is listening on, receivedValues: struct to read the received values like username, password, data, cancelFunc: function to stop the server, err: something went wrong
Click to show internal directories.
Click to hide internal directories.