Results 1 to 3 of 3

Thread: Launching the default e-mail client

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    2

    Post


    I'm looking for a way to launch the default e-mail client using a simple command button.

    Any tips on how to achieve this?

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    173

    Post

    You will need to use the ShellExecute API:
    Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

    Call it like this:

    ShellExecute me.hwnd, "OPEN", "mailto:yourmail","",App.path,1

  3. #3
    Member
    Join Date
    Feb 1999
    Location
    ,Mo,USA
    Posts
    36

    Post

    Hey-If you are trying to open a new message in the default email client to be sent to a certain address,there is a simple code to do this:

    Shell "Start Mailto:[email protected]"

    This takes no special declarations, etc.
    Hope this helps!
    CarlosTheJackal

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