From 228b7e90770f18326441bdae9acdf3b5f3f94742 Mon Sep 17 00:00:00 2001 From: scrat Date: Sun, 25 May 2008 17:44:57 +0000 Subject: [PATCH] git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2632 fd906abe-77d9-0310-91a1-e0d9ade77398 --- agent/testing/winapi.py | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/agent/testing/winapi.py b/agent/testing/winapi.py index e565660..3942ed1 100644 --- a/agent/testing/winapi.py +++ b/agent/testing/winapi.py @@ -126,16 +126,41 @@ class Items(object): def __init__(self): self.data = {} - self.data[0] = Mail(Subject="Python Training", - SenderName="Mark Pilgrim", - To="allPythonics@python.org", - Body="The training will take place on Wed, 21st Dec.\ + self.data[0] = Mail(subj="Python Training", + sendName="Mark Pilgrim", + to="allPythonics@python.org", + body="The training will take place on Wed, 21st Dec.\ Kindly check the enclosed invitation.", BodyFormat=1, Attachments=Attachments(["Invitation.pdf", "21.pdf"]) ) - self.data[1] = Mail() - self.data[2] = Mail() + self.data[1] = Mail(subj="Information Technolgies Inc. Test it!", + sendName="IT.org", + to="allUser@internet.com", + BodyFormat=2, + HTMLBody="\ + \ + Test-HTML-Mail\ + \ + \ +

Das ist eine HTML-Mail

\ +
Hier steht \ + Beispiel-Text
\ + \ + ", + 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): return self.data[idx-1]