Results 1 to 8 of 8

Thread: create e-mail with multiple attachments

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    20

    create e-mail with multiple attachments

    hi,

    i know it can't be that hard, and yet all my internet searches have come up empty for some reason.
    here's what i want to do:
    from within vb6, create an outlook express "new mail" (so the window actually pops up, i dont need vb6 to send the mail or anything), and then fill in recipient, subject, body etc... and attach one or more files.

    how would i do this? thanx in advance.

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

    Re: create e-mail with multiple attachments

    Search our Forums because this has been asked several times already.

    Search for "ShellExecute + mailto:" but OE needs to be the default email client on the system.
    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
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: create e-mail with multiple attachments



    Has someone helped you? Then you can Rate their helpful post.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    20

    Re: create e-mail with multiple attachments

    thanx for the quick reply, think i found it. i'm such a vb n00b hehe

  5. #5
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: create e-mail with multiple attachments

    Just found another link that might have something good : http://www.vbforums.com/showthread.php?t=79636


    Has someone helped you? Then you can Rate their helpful post.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    20

    Re: create e-mail with multiple attachments

    another thing... how can you find out the language of outlook express? I guess it's the same as the system language but i can't find out how to get that either

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

    Re: create e-mail with multiple attachments

    Outlook Express does not expose any valid COM interfaces so you can not program against it other then SendKeys type code.
    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

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    20

    Re: create e-mail with multiple attachments

    yeah but the problem is that the sendkeys are different in different languages... that sux. And I know for sure that the program will be used on at least english, spanish and french windows (and OE). So I need to find out the systemlanguage somehow.

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