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
6bd79e64
Commit
6bd79e64
authored
Aug 12, 2002
by
Jens Vagelpohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- corrected argument order inside simple_send
- cleaned up comment to avoid long line
parent
f026bfaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+5
-5
No files found.
lib/python/Products/MailHost/MailHost.py
View file @
6bd79e64
...
...
@@ -11,8 +11,8 @@
#
##############################################################################
"""SMTP mail objects
$Id: MailHost.py,v 1.7
2 2002/03/28 19:59:00 andreasjung
Exp $"""
__version__
=
"$Revision: 1.7
2
$"
[
11
:
-
2
]
$Id: MailHost.py,v 1.7
3 2002/08/12 21:50:31 jens
Exp $"""
__version__
=
"$Revision: 1.7
3
$"
[
11
:
-
2
]
from
Globals
import
Persistent
,
DTMLFile
,
InitializeClass
from
smtplib
import
SMTP
...
...
@@ -124,8 +124,8 @@ class MailBase(Acquisition.Implicit, OFS.SimpleItem.Item, RoleManager):
self
.
_send
(
mfrom
,
mto
,
messageText
)
# This is here for backwards compatibility only. Possibly it could
be used to send messages
#
at a sc
eduled future time, or via a mail queue?
# This is here for backwards compatibility only. Possibly it could
#
be used to send messages at a sch
eduled future time, or via a mail queue?
security
.
declareProtected
(
use_mailhost_services
,
'scheduledSend'
)
scheduledSend
=
send
...
...
@@ -134,7 +134,7 @@ class MailBase(Acquisition.Implicit, OFS.SimpleItem.Item, RoleManager):
body
=
"From: %s
\
n
To: %s
\
n
Subject: %s
\
n
\
n
%s"
%
(
mfrom
,
mto
,
subject
,
body
)
self
.
_send
(
m
to
,
mfrom
,
body
)
self
.
_send
(
m
from
,
mto
,
body
)
security
.
declarePrivate
(
'_send'
)
...
...
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