Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #25940

Re: Python and Outlook, sendinf an image in the body of email

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <bruceg113355@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.05; 'attribute': 0.05; 'to:addr:comp.lang.python': 0.09; 'cc:addr :python-list': 0.10; 'subject:Outlook': 0.16; 'subject:image': 0.16; 'appears': 0.18; 'import': 0.21; 'assignment': 0.22; 'cc:2**0': 0.23; 'bruce': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'does': 0.37; 'item': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'skip:o 20': 0.38; 'from:no real name:2**0': 0.60; 'skip:w 30': 0.61; 'subject:, ': 0.61; 'appointment': 0.65
Newsgroups comp.lang.python
Date Mon, 23 Jul 2012 17:42:15 -0700 (PDT)
In-Reply-To <69adceee-49d0-4348-b439-04b6362ebd0d@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=71.162.161.91; posting-account=cxDMTgoAAAD0NMd7UaWriutT-PIoI910
References <641dab69-9782-4bf3-8a01-34237c4f189a@googlegroups.com> <22e9b14a-d660-4ec9-a67b-0fcdc9ef1463@googlegroups.com> <mailman.2496.1343075588.4697.python-list@python.org> <69adceee-49d0-4348-b439-04b6362ebd0d@googlegroups.com>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 71.162.161.91
MIME-Version 1.0
Subject Re: Python and Outlook, sendinf an image in the body of email
From bruceg113355@gmail.com
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.2512.1343090538.4697.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1343090538 news.xs4all.nl 6884 [2001:888:2000:d::a6]:48454
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:25940

Show key headers only | View raw


This assignment works:
  import win32com.client
  oOutlook = win32com.client.Dispatch("Outlook.Application")
  appt = oOutlook.CreateItem(0)
  appt.BodyFormat = win32com.client.constants.olFormatHTML 

But this assignment does not work:
  import win32com.client
  oOutlook = win32com.client.Dispatch("Outlook.Application"
  appt = oOutlook.CreateItem(1)  #appointment
  appt.BodyFormat = win32com.client.constants.olFormatHTML 

      AttributeError: ... object has no attribute 'BodyFormat'

It simply appears an Appointment Item does not support .BodyFormat
Images are delivered as attachments, can not be in the body (inline) of the appointment email.


Bruce



Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python and Outlook, sendinf an image in the body of email bruceg113355@gmail.com - 2012-07-23 10:19 -0700
  Re: Python and Outlook, sendinf an image in the body of email Ian Kelly <ian.g.kelly@gmail.com> - 2012-07-23 12:11 -0600
  Re: Python and Outlook, sendinf an image in the body of email bruceg113355@gmail.com - 2012-07-23 11:33 -0700
    Re: Python and Outlook, sendinf an image in the body of email python@bdurham.com - 2012-07-23 16:20 -0400
    Re: Python and Outlook, sendinf an image in the body of email Ian Kelly <ian.g.kelly@gmail.com> - 2012-07-23 14:32 -0600
      Re: Python and Outlook, sendinf an image in the body of email bruceg113355@gmail.com - 2012-07-23 14:24 -0700
      Re: Python and Outlook, sendinf an image in the body of email bruceg113355@gmail.com - 2012-07-23 14:24 -0700
        Re: Python and Outlook, sendinf an image in the body of email bruceg113355@gmail.com - 2012-07-23 17:42 -0700
        Re: Python and Outlook, sendinf an image in the body of email bruceg113355@gmail.com - 2012-07-23 17:42 -0700
    Re: Python and Outlook, sendinf an image in the body of email Emile van Sebille <emile@fenx.com> - 2012-07-23 14:02 -0700

csiph-web