[Zope-Checkins] CVS: Zope/lib/python/Products/MailHost/help - Mail-Host.stx:1.2.336.1 MailHost.py:1.7.62.1
Lennart Regebro
regebro@nuxeo.com
Tue, 1 Apr 2003 13:42:30 -0500
Update of /cvs-repository/Zope/lib/python/Products/MailHost/help
In directory cvs.zope.org:/tmp/cvs-serv28420
Modified Files:
Tag: regebro-MailHostDoc_update-branch
Mail-Host.stx MailHost.py
Log Message:
Updating docs
=== Zope/lib/python/Products/MailHost/help/Mail-Host.stx 1.2 => 1.2.336.1 ===
--- Zope/lib/python/Products/MailHost/help/Mail-Host.stx:1.2 Tue Jun 27 14:11:40 2000
+++ Zope/lib/python/Products/MailHost/help/Mail-Host.stx Tue Apr 1 13:42:30 2003
@@ -1,7 +1,43 @@
MailHost: Sends mail through an SMTP server.
-
+
MailHosts allow you to send mail via the Simple Mail Transfer
Protocol (SMTP).
- This object can be used by the <dtml-sendmail> tag to handle
- delivery of mail.
+ This object can be used deliver mail by the <dtml-sendmail> tag
+ or via the send() and simple_send() methods.
+
+ '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 Bcc:.
+ The arguments are:
+
+ messageText -- The mail message. It can either be a rfc822
+ formed text with header fields, or just a body without any
+ header fields. The other arguments given will override the
+ header fields in the message, if they exist.
+
+ mto -- A commaseparated string or list of recipient(s) of the message.
+
+ mfrom -- The address of the message sender.
+
+ subject -- The subject of the message.
+
+ encode -- The rfc822 defined encoding of the message. The
+ default of '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.
+ The arguments are:
+
+ mto -- A commaseparated string or list of recipient(s) of the message.
+
+ mfrom -- The address of the message sender.
+
+ subject -- The subject of the message.
+
+ body -- The body of the message.
+
=== Zope/lib/python/Products/MailHost/help/MailHost.py 1.7 => 1.7.62.1 ===
--- Zope/lib/python/Products/MailHost/help/MailHost.py:1.7 Wed Aug 14 18:14:51 2002
+++ Zope/lib/python/Products/MailHost/help/MailHost.py Tue Apr 1 13:42:30 2003
@@ -35,22 +35,38 @@
def send(messageText, mto=None, mfrom=None, subject=None,
encode=None):
"""
- Sends an email message.
+ 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 Bcc:.
The arguments are:
- messageText -- The mail message. It can either be a rfc822
- formed text with header fields, or just a body without any
- header fields. The other arguments given will override the
- header fields in the message, if they exist.
+ messageText -- The mail message. It can either be a rfc822
+ formed text with header fields, or just a body without any
+ header fields. The other arguments given will override the
+ header fields in the message, if they exist.
- mto -- A string or list of recipient(s) of the message.
+ mto -- A commaseparated string or list of recipient(s) of the message.
- mfrom -- The address of the message sender.
+ mfrom -- The address of the message sender.
- subject -- The subject of the message.
+ subject -- The subject of the message.
- encode -- The rfc822 defined encoding of the message. The
- default of 'None' means no encoding is done. Valid values
- are 'base64', 'quoted-printable' and 'uuencode'.
+ encode -- The rfc822 defined encoding of the message. The
+ default of 'None' means no encoding is done. Valid values
+ are 'base64', 'quoted-printable' and 'uuencode'.
+ """
+
+ def simple_send(self, mto, mfrom, subject, body):
+ """
+ Sends a message. Only To:, From: and Subject: headers can be set.
+ The arguments are:
+
+ mto -- A commaseparated string or list of recipient(s) of the message.
+
+ mfrom -- The address of the message sender.
+
+ subject -- The subject of the message.
+
+ body -- The body of the message.
"""