Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
8a622f0b
Commit
8a622f0b
authored
Apr 01, 2003
by
Lennart Regebro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Elaborated the documentation for the MailHost API somewhat.
parent
abfa73a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
14 deletions
+66
-14
lib/python/Products/MailHost/help/Mail-Host.stx
lib/python/Products/MailHost/help/Mail-Host.stx
+39
-3
lib/python/Products/MailHost/help/MailHost.py
lib/python/Products/MailHost/help/MailHost.py
+27
-11
No files found.
lib/python/Products/MailHost/help/Mail-Host.stx
View file @
8a622f0b
...
...
@@ -3,5 +3,41 @@ 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.
lib/python/Products/MailHost/help/MailHost.py
View file @
8a622f0b
...
...
@@ -35,7 +35,9 @@ class MailHost:
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
...
...
@@ -43,7 +45,7 @@ class MailHost:
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.
...
...
@@ -54,3 +56,17 @@ class MailHost:
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.
"""
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment