diff --git a/client_119.go b/client_119.go index 7de5d59..24a0118 100644 --- a/client_119.go +++ b/client_119.go @@ -9,7 +9,10 @@ package mail import "errors" -// Send sends out the mail message +// Send attempts to send one or more Msg using the Client connection to the SMTP server. +// If the Client has no active connection to the server, Send will fail with an error. For each of the +// provided Msg it will associate a SendError to the Msg in case there of a transmission or delivery +// error. func (c *Client) Send(messages ...*Msg) error { if err := c.checkConn(); err != nil { return &SendError{Reason: ErrConnCheck, errlist: []error{err}, isTemp: isTempError(err)} diff --git a/client_120.go b/client_120.go index 4f82aa7..c6049eb 100644 --- a/client_120.go +++ b/client_120.go @@ -11,7 +11,10 @@ import ( "errors" ) -// Send sends out the mail message +// Send attempts to send one or more Msg using the Client connection to the SMTP server. +// If the Client has no active connection to the server, Send will fail with an error. For each of the +// provided Msg it will associate a SendError to the Msg in case there of a transmission or delivery +// error. func (c *Client) Send(messages ...*Msg) (returnErr error) { if err := c.checkConn(); err != nil { returnErr = &SendError{Reason: ErrConnCheck, errlist: []error{err}, isTemp: isTempError(err)}