Re: outlook retrieving attachments from email and putting in a directory

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jan Persson (jpersson1_at_yahoo.com)
Date: 03/19/04


Date: 19 Mar 2004 04:56:19 -0800


"Brian Tillman" <tillmabg@yahoo.com> wrote in message news:<uzShFOTDEHA.3236@TK2MSFTNGP09.phx.gbl>...
> Q X <qxz_77@yahoo.com> wrote:
>
> > Oh really? Is this possible using dos? How can I programmically (or
> > using a scripting language like tcl, perl, python) send email using a
> > PC?
>
> Visual Basic or C# would be appropriate languages to use. tcl, Python,
> perl, etc. are not. As to how to write them, perhaps
> microsoft.public.outlook.program_vba would be a better newsgroup.

I don't know much about Perl and Tcl, but Python actually handles Windows
specific API's very well and this makes it an excellent choice for
many applications. You can write services, automation servers and other
Windows stuff in Python which from the users perspective will taste and
smell exactly like it was written in C++.

As a small example you can use the COM integration to print the available
folders with the following code:

import win32com.client
object = win32com.client.Dispatch("Outlook.Application")
ns = object.GetNamespace("MAPI")
for f in ns.Folders: print f

As a more elaborate proof of concept you can take a look at SpamBayes which
is a spam filter integrated in Outlook which is written in Python.

http://starship.python.net/crew/mhammond/spambayes/

For more information about Python take a look at http://www.python.org/.

Kind regards
    //Jan Persson



Relevant Pages

  • Re: Choosing Perl/Python for my particular niche
    ... >I was under the impression that Tcl ... >it's good to know that Tcl is an option to Perl and Python, ... >algorithms for programming coarse grain reconfigurable ...
    (comp.lang.perl.misc)
  • Re: Choosing Perl/Python for my particular niche
    ... >I was under the impression that Tcl ... >it's good to know that Tcl is an option to Perl and Python, ... >algorithms for programming coarse grain reconfigurable ...
    (comp.lang.python)
  • Re: Choosing Perl/Python for my particular niche
    ... > still more prevalent than either Perl or Python in CAD, ... I was under the impression that Tcl ... it's good to know that Tcl is an option to Perl and Python, ...
    (comp.lang.perl.misc)
  • Re: Choosing Perl/Python for my particular niche
    ... > still more prevalent than either Perl or Python in CAD, ... I was under the impression that Tcl ... it's good to know that Tcl is an option to Perl and Python, ...
    (comp.lang.python)
  • Re: Python or PHP?
    ... If it's one of the things for which Python ... every language here and there more ways to do something. ... you make Perl more complicated than it is:-D. ... Not the programmer. ...
    (comp.lang.python)