_________________________________________________________________
smtp - Client-side tcl implementation of the smtp protocol
package require Tcl
package require mime ?1.0?
package require smtp ?1.3?
smtp::sendmessage token options
_________________________________________________________________
The smtp library package provides the client side of the smtp protocol.
smtp::sendmessage token options
This command sends the MIME part represented by
token to an SMTP server. options is a list of
options and their associated values. The recognized
options are:
If the -originator option is not present, the originator address is taken from From (or Resent-From); similarly, if the -recipients option is not present, recipient addresses are taken from To, cc, and Bcc (or Resent-To, and so on). Note that the header key/values supplied by the -header option (not those present in the MIME part) are consulted. Regardless, header key/values are added to the outgoing message as necessary to ensure that a valid 822-style message is sent.
The command returns a list indicating which recipients were unacceptable to the SMTP server. Each element of the list is another list, containing the address, an SMTP error code, and a textual diagnostic. Depending on the -atleastone option and the intended recipients, a nonempty list may still indicate that the message was accepted by the server.
mime, pop3, ftp, http
mail, email, smtp, mime, rfc821, rfc822, internet, net