Results 1 to 4 of 4

Thread: Open Email App from mine. *[RESOLVED]*

  1. #1

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435

    Thumbs up Open Email App from mine. *[RESOLVED]*

    I want to open the users default email app with the recipients name and the subject ready for them to fill in the message and then send, by clicking a picture box. How?

    Any help would be appreciated
    Last edited by RealNickyDude; Feb 6th, 2003 at 07:34 AM.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  2. #2
    Member
    Join Date
    Dec 2002
    Location
    NY, USA
    Posts
    52
    Public Class Form1
    Inherits System.Windows.Forms.Form

    #Region " Windows Form Designer generated code "
    #End Region


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim tx_Email As String

    tx_Email = "[email protected]"
    System.Diagnostics.Process.Start("mailto:[email protected]?subject=Hi!")
    End Sub
    End Class
    Iouri Boutchkine

  3. #3

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    I found this, but it just sends an email, I want to launch the default email app.

    First , add a ref "web.dll" then everything should works fine.

    VB Code:
    1. Imports System.Web.Mail
    2.  
    3. Dim m As New System.Web.Mail.MailMessage()
    4.  
    5. With m
    6.   .From = "[email protected]"
    7.   .To = "myself$my.house"
    8.   .Subject = "My SMTP Test"
    9.   .Body = "My New Message"
    10. End With
    11.  
    12. SmtpMail.SmtpServer = "MyServerName"
    13. SmtpMail.Send(m)
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  4. #4

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    Ah, crossed posts! thanks Iouri, i've whittled it down to just:

    VB Code:
    1. System.Diagnostics.Process.Start("mailto:[email protected]?subject=Hi!")
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

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