[Tutor] Can't run this script while I'm logged off of Windows XP

Emile van Sebille emile at fenx.com
Fri Apr 3 21:59:34 CEST 2009


Eduardo Vieira wrote:
> Hello, I'm making a script that daily grabs some information and email
> it to some of my coworkers. It runs all the other parts while I'm
> logged off, but this part doesn't. I need to be logged on for it to
> work. Also, when I'm logged on to my Windows XP I just can't make it
> send. It only sits in my mailbox. I have to manually press "send" to
> get it sent.
> 
> here is the code that won't work:
> import win32com.client
> 
> try:
>     s = win32com.client.Dispatch("Mapi.Session")


Hmmm... I normally send mail with the smtplib module.  There're plenty 
of examples out there.  Maybe you'll have better luck with that.

Emile



More information about the Tutor mailing list