DTS to take data from my outlook inbox and save it as textfile

  • Hello everyone

    I need quote or some information on how to take data from my email and save it as a textfile on my C:\ drive.  I only have two things to use DTS and SQL.   I need all information since i am newb

    Thank you in advance

     

  • You can research xp_readmail from BOL however, I don't think this will work for you.

    The SQL server can read mail sent to the SQL server but, I haven't heard of it being able to read someone else's e-mail inbox.

    I would research doing this via VB that could look at your e-mail or possibly create a RULE that would EXPORT your mail on receive.

     

    Good Luck



    Good Hunting!

    AJ Ahrens


    webmaster@kritter.net

  • Take a look at creating something in DTS using VBScript to reference CDO objects.

    EG:

    Set objSession = CreateObject("CDONTS.Session")

    objSession.LogonSMTP ("Joe Friday", "joe@here.com")

    Set objInbox = objSession.Inbox

    Set colMessages = objInbox.Messages

    MsgBox objInbox.Name & " – " & colMessages.Count & " messages"

    The actual folders accessed depend on it's being run against the SMTP service of IIS or Exchange Server.

    --------------------
    Colt 45 - the original point and click interface

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply