Lines Matching defs:Mail
5 // Package smtp implements the Simple Mail Transfer Protocol as defined in RFC 5321.
50 // The addr must include a port, as in "mail.example.com:smtp".
235 // Mail issues a MAIL command to the server using the provided email address.
236 // If the server supports the 8BITMIME extension, Mail adds the BODY=8BITMIME
238 // This initiates a mail transaction and is followed by one or more Rcpt calls.
239 func (c *Client) Mail(from string) error {
243 cmdStr := "MAIL FROM:<%s>"
254 // A call to Rcpt must be preceded by a call to Mail and may be followed by
273 // can be used to write the mail headers and body. The caller should
290 // The addr must include a port, as in "mail.example.com:smtp".
303 // attachments (see the mime/multipart package), or other mail
331 if err = c.Mail(from); err != nil {
370 // Reset sends the RSET command to the server, aborting the current mail