Hi,

i tried to access standard mail application to write a mail.
I know the machanism with urllib, but there is no regular way to add attachments.

Actually i do following:

app = "Outlook"

mailObj = win32com.client.gencache.EnsureDispatch("%s.Application" % app)
mail = mailObj.CreateItem(win32com.client.constants.olMailItem)
mail.Recipients.Add("mail (at) domain.de")
mail.Subject = "Subject"
mail.Body = "Body Msg"
mail.Attachments.Add('c:/temp/file.txt')

But there are Systems, which don't use MS Outlook.
Is there a way to access the standard mail application.

Regards,
Steffen
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to