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
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
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
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
> 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
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-
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
#