CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Posts
    5

    Email programming

    How shall we updload recordset through email?


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Email programming

    Well, you will need to write a program that collects the emails, parse them, and processes them. I think there are two possible ways

    1) the hard way. You write a program that connects to the email server, retrieves the emails, and parses them. This is called the hard way because you will need to program the email stuff yourself (although it isn't that hard, you just need to know the email commands and you will need to work with winsock to do this)

    2) the easy way, i'm not sure there really is an easy way, but this is the easiest way. You let outlook collect the mails, and you just process them. This can be done using the outlook typelibrary. You will need to use the mailitem object; With this object, you can get about everything you need from the email (like subject, sender, body, attachments,...). Once you got the data you need, you must parse that and take appropriate actions (like updating the recordset)

    The first way requires the most skills, but gives you more control over the situation. The second way requires less skills, but doesn't give you full control, and the computer running that program must have outlook configured and running.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured