~ubuntu-branches/ubuntu/utopic/dogtail/utopic

« back to all changes in this revision

Viewing changes to examples/evolution-test-sending-email.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-12-21 13:33:47 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20061221133347-xo9jg11afp5plcka
Tags: upstream-0.6.1
ImportĀ upstreamĀ versionĀ 0.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
# Dogtail demo script
3
 
__author__ = 'David Malcolm <dmalcolm@redhat.com>'
4
 
 
5
 
# Test composing and sending an email
6
 
#
7
 
# Assumes evolution is configured and is running
8
 
#
9
 
 
10
 
from dogtail.apps.wrappers.evolution import *
11
 
 
12
 
from datetime import datetime
13
 
 
14
 
#testName = "UntitledDogtailTest"
15
 
testRunId = "%s"%(datetime.now().isoformat())
16
 
 
17
 
evo = EvolutionApp()
18
 
composer = evo.composeEmail()
19
 
composer.to = "YOUR-EMAIL-ADDRESS-HERE"
20
 
composer.subject = "Test email (generated by Dogtail).  Testrun: %s)"%testRunId
21
 
composer.body = "This is a test email generated by Dogtail."
22
 
composer.send()