MailHosts allow you to send mail via the Simple Mail Transfer Protocol (SMTP).
This object can be used deliver mail by the
send(messageText, mto=None, mfrom=None, subject=None, encode=None)Sends an email message where the messageText is an rfc822 formatted message. This allows you complete control over the message headers, including setting any extra headers such as Cc: and Reply-To:. The arguments are:
None means no encoding is done. Valid values
are base64, quoted-printable and uuencode.simple_send(self, mto, mfrom, subject, body)Sends a message. Only To:, From: and Subject: headers can be set. Note that simple_send does not process or validate its arguments in any way. The arguments are: