Commit 392c5c12 authored by Jeffrey Shell's avatar Jeffrey Shell

fixed mailhost-getting bug

parent 615e816a
__rcs_id__='$Id: SendMailTag.py,v 1.1 1998/01/05 19:34:31 jeffrey Exp $' __rcs_id__='$Id: SendMailTag.py,v 1.2 1998/01/27 17:27:31 jeffrey Exp $'
__version__='$Revision: 1.1 $'[11:-2] __version__='$Revision: 1.2 $'[11:-2]
from MailHost import MailBase from MailHost import MailBase
from DocumentTemplate.DT_Util import * from DocumentTemplate.DT_Util import *
...@@ -80,6 +80,7 @@ class SendMailTag: ...@@ -80,6 +80,7 @@ class SendMailTag:
has_key=args.has_key has_key=args.has_key
if self.mailhost: if self.mailhost:
mhost=md[self.mailhost]
mhost.send(self.section(md.this, md), self.mailto, self.mailfrom, mhost.send(self.section(md.this, md), self.mailto, self.mailfrom,
self.subject) self.subject)
elif self.smtphost: elif self.smtphost:
...@@ -98,6 +99,9 @@ String.commands['sendmail']=SendMailTag ...@@ -98,6 +99,9 @@ String.commands['sendmail']=SendMailTag
############################################################# #############################################################
# #
# $Log: SendMailTag.py,v $ # $Log: SendMailTag.py,v $
# Revision 1.2 1998/01/27 17:27:31 jeffrey
# fixed mailhost-getting bug
#
# Revision 1.1 1998/01/05 19:34:31 jeffrey # Revision 1.1 1998/01/05 19:34:31 jeffrey
# split out the SendMail tag machinery into new module # split out the SendMail tag machinery into new module
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment