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

2012-07-23 Thread bruceg113355
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.Dispatc

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

2012-07-23 Thread bruceg113355
These do not work: appt.BodyFormat = olBodyFormat.olFormatHTML ... appt.BodyFormat = olBodyFormat.olFormatHTML NameError: name 'olBodyFormat' is not defined appt.BodyFormat = win32com.client.constants.olFormatHTML ... appt.BodyFormat = win32com.client.constan

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

2012-07-23 Thread Emile van Sebille
On 7/23/2012 11:33 AM bruceg113...@gmail.com said... I tried something similar to the example at http://stackoverflow.com/questions/4312687/how-to-embed-images-in-email . Problem is, this line is not understood: mail.BodyFormat = OlBodyFormat.olFormatHTML If I read the example properl

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

2012-07-23 Thread Ian Kelly
On Mon, Jul 23, 2012 at 12:33 PM, wrote: > I tried something similar to the example at > http://stackoverflow.com/questions/4312687/how-to-embed-images-in-email . > > Problem is, this line is not understood: >mail.BodyFormat = OlBodyFormat.olFormatHTML > > Traceback (most recent call

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

2012-07-23 Thread python
> Problem is, this line is not understood: > > mail.BodyFormat = OlBodyFormat.olFormatHTML Try olBodyFormat (lower case 'o') Malcolm -- http://mail.python.org/mailman/listinfo/python-list

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

2012-07-23 Thread Ian Kelly
On Mon, Jul 23, 2012 at 11:19 AM, wrote: > All, > > I am trying to figure out how to send a image in the body of a email when > Making a Meeting Request. You need to use html in the body with an tag that references the attachment. See: http://stackoverflow.com/questions/4312687/how-to-embed-

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

2012-07-23 Thread bruceg113355
All, I am trying to figure out how to send a image in the body of a email when Making a Meeting Request. Below is my current code. Thanks, Bruce # code below is mainly from http://harunprasad.blogspot.com/2012/01/python-make-meeting-request-appointment.html #