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: 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> <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 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: 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 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