git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2632 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
8e24cbc7c5
commit
228b7e9077
1 changed files with 31 additions and 6 deletions
|
@ -126,16 +126,41 @@ class Items(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.data = {}
|
self.data = {}
|
||||||
self.data[0] = Mail(Subject="Python Training",
|
self.data[0] = Mail(subj="Python Training",
|
||||||
SenderName="Mark Pilgrim",
|
sendName="Mark Pilgrim",
|
||||||
To="allPythonics@python.org",
|
to="allPythonics@python.org",
|
||||||
Body="The training will take place on Wed, 21st Dec.\
|
body="The training will take place on Wed, 21st Dec.\
|
||||||
Kindly check the enclosed invitation.",
|
Kindly check the enclosed invitation.",
|
||||||
BodyFormat=1,
|
BodyFormat=1,
|
||||||
Attachments=Attachments(["Invitation.pdf", "21.pdf"])
|
Attachments=Attachments(["Invitation.pdf", "21.pdf"])
|
||||||
)
|
)
|
||||||
self.data[1] = Mail()
|
self.data[1] = Mail(subj="Information Technolgies Inc. Test it!",
|
||||||
self.data[2] = Mail()
|
sendName="IT.org",
|
||||||
|
to="allUser@internet.com",
|
||||||
|
BodyFormat=2,
|
||||||
|
HTMLBody="<html>\
|
||||||
|
<head>\
|
||||||
|
<title>Test-HTML-Mail</title>\
|
||||||
|
</head>\
|
||||||
|
<body>\
|
||||||
|
<h1>Das ist eine HTML-Mail</h1>\
|
||||||
|
<div align='center'>Hier steht \
|
||||||
|
<b>Beispiel</b>-Text</div>\
|
||||||
|
</body>\
|
||||||
|
</html>",
|
||||||
|
SentOn="21.04.07"
|
||||||
|
)
|
||||||
|
self.data[2] = Mail(subj="@ Product Details @",
|
||||||
|
sendName="",
|
||||||
|
senderEmailAddress="custominfo@enterprise.com",
|
||||||
|
to="recipient1@mail.com, customer@web.de",
|
||||||
|
BodyFormat=1,
|
||||||
|
body="Dear customer,\
|
||||||
|
Hereby we submit you the information you ordered.\
|
||||||
|
Please feel free to ask anytime you want.\
|
||||||
|
Sincerely, Customer Support",
|
||||||
|
SentOn="30.07.07"
|
||||||
|
)
|
||||||
|
|
||||||
def Item(self, idx):
|
def Item(self, idx):
|
||||||
return self.data[idx-1]
|
return self.data[idx-1]
|
||||||
|
|
Loading…
Add table
Reference in a new issue