March 2003
Intermediate to advanced
656 pages
39h 30m
English
sendmail
s.sendmail(from_addr,to_addrs,msg_string)Sends mail message msg_string from the
sender whose email address is in string
from_addr to each of the recipients whose
email addresses are the items of list
to_addrs.
msg_string must be a complete RFC-822
message in a single multiline string: the headers, an empty line for
separation, followed by the body.
from_addr and
to_addrs are used only to direct the mail
transport, not to add or change headers within
msg_string. To prepare RFC-822-compliant
messages, use package email, covered in Chapter 21.