Results 1 to 3 of 3

Thread: import mail in Access From outlook (exchange environment)

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    3

    import mail in Access From outlook (exchange environment)

    Hi all,

    I really need your help on this one. For an important project we need the following functionalities. Several users share a functional mailbox. This mailbox is added to their personal mailbox in outlook.

    We need to copy the mail including the attachments in a SQL/Access table. The attachments are to be stored within the application.

    What i need is code to reach the right mailbox. The code underneath will not work because of the multiple mailboxes.

    VB Code:
    1. Set myInbox = myNameSpace.GetDefaultFolder(olFolderInbox)

    second code I need is a code to store attachments in a table, so from outlook to table. I prefer without a store procedure on disk (save as etc.)

    I really hope that you could help me.

    thank you very much

    jurjen

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

    Re: import mail in Access From outlook (exchange environment)

    A couple of things...

    If you store the attachments into an Access db it will bloat the db size dramatically and if the db gets corrupted you loose all your data.

    What do you mean - Access/SQL? You have the choice of using either Access or SQL Server?

    Lastly, is the shared mailbox added to the users outlook profile/session as a secondary pst file or still as an Exchange mailbox?
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    3

    Re: import mail in Access From outlook (exchange environment)

    Robdog,

    Thanks for the reply. I should have been a little more specific in my post.

    At this moment we're doing a for us big project for a helpdesk. Several departments are to use this helpdesktool with 2 up to 8 operators/users at the same time. Because this is a temporary application, the focus lies more on fast delivery than on reliability.
    We have chosen to build an Access application which will be upscaled to SQL.. A front/back end structure with a object orientated layer between them. In this way it's not necessary to have the SQL tables in the Access forms database.

    One of the functionalities is to import mail from Outlook into the applicatoin and link them to the tickets. All departments have their own functional mailbox which is added in outlook. So the user has it's own email box in outlook and the functional mailbox of it's department.

    Second they want to keep the attachments 'in' the application linked to the ticked. This can be done by placing files in a table or have these files external somewhere on a server. BEcause of privacy and security it's not allowed to have loose files on the server. This leaves us to store them internally. I may be propose the external file storing again....

    The problems we come across are the following

    1 make a pointer to the functional mailbox./
    VB Code:
    1. Set myInbox = myNameSpace.GetDefaultFolder(olFolderInbox)
    This code points to the personal mailbox of the user

    2 stroring the attachments internally. We prefer without a temporary save on the server

    3 Sending mail on the functional maibox account instead of the personal account.

    I hope that I have explained it a little. Thanks again for your reply and for a answer.

    Sincerely

    Jurjen

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