Results 1 to 2 of 2

Thread: ShellExecute mailto....[RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2001
    Location
    Buffalo, NY
    Posts
    297

    ShellExecute mailto....[RESOLVED]

    Hey everyone,

    I want to duplicate the 6.0 functionality of calling the ShellExecute API with the mailto string. Basically it causes the default email client to open and start a new email.

    Thanks!

    --Ben
    Last edited by BenFinkel; Jan 6th, 2004 at 10:45 AM.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2001
    Location
    Buffalo, NY
    Posts
    297
    Fine, I figured it out on my own anyways!


    Code:
            Dim siEmail As New System.Diagnostics.ProcessStartInfo()
            Dim prEmail As System.Diagnostics.Process
    
            siEmail.FileName = "mailto:" & Me.txtEmail.Text
            siEmail.UseShellExecute = True
    
            prEmail = System.Diagnostics.Process.Start(siEmail)

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