Results 1 to 6 of 6

Thread: How do I automatically export emails into CSV and send out reply?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    3

    Question How do I automatically export emails into CSV and send out reply?

    Hi,

    I need to write a VB script that will automatically check emails in an outlook email account, send a reply to each one (generic message each time) and then save the sender's email to a csv list stored on a specified path (eg <\\somedir\>).

    This script is required to manage unsubscribes from a web page-based competition (so there is an email address that users email to request to unsubscribe from the competition and I need all of those emails replied to and the senders email stored in the csv for processing).

    Anyone know how to do this?

    Any help much appreciated,

    Cheers,

    Fred

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: How do I automatically export emails into CSV and send out reply?

    Do you have VB6 or VB.net?

    your best bet would be to write an Outlook Add-in.. and Add-in can catch all sorts of events and do everything needed without having the security prompt appear.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    3

    Re: How do I automatically export emails into CSV and send out reply?

    Hi,

    I have VB6. Add-in sounds like a good idea. Not sure where to start though. ave you got any pre-canned code I can adapt?

    Also, how do I use add-ins for outlook, is there a good FAQ you could point me to?

    Cheers,

    Fred

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: How do I automatically export emails into CSV and send out reply?

    google it.. there are lots of samples out there..
    but to start:

    Start a new project.. pick Add-In

    then switch to the Connect.dsr (object view)
    and select Outlook in the application
    and Startup in the load...

    here is a sample project that copies the domains to the junk sender and deletes
    http://www.freevbcode.com/ShowCode.Asp?ID=5937
    but dig around.. there are lots.

    if you need help.. we're here
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How do I automatically export emails into CSV and send out reply?

    Here is one way for a basic AddIn.

    http://msdn.microsoft.com/library/de...essentials.asp
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    New Member
    Join Date
    Jul 2006
    Posts
    3

    Re: How do I automatically export emails into CSV and send out reply?

    Cheers guys, I'll take a look at these tomorrow

    (11pm here)

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