win32com: create email message in windows default app?

News M Claveau /Hamster-P essai1 at mci.local
Sun Sep 7 19:19:05 CEST 2003


Hi !

But what is "windows default email application" ?

In windows, with WSH, you can write :
    Dim str,objEmail
    Set objEmail = CreateObject("CDO.Message")
    objEmail.From = "toto at titi.fr"
    objEmail.To = "tata at tutu.com"
    objEmail.Subject = "Msg-try"
    objEmail.Textbody = "Corps (body) du (of) message."
    objEmail.Send
    Wscript.quit
And run, without pb.
Other way : use MAPI application (essentially outlook-express, or outlook),
but the "default notion" is bad definition  (why MAPI more than CDO or more
than Python-library ? )

Windows give sockets and applications use sockets, without priority.
Applications like yours, virus, trojan, anti-virus, python-scripts, etc.

-sorry for my poor english-

@-salutations
-- 
Michel Claveau
site :   http://mclaveau.com






More information about the Python-list mailing list