Results 1 to 3 of 3

Thread: [RESOLVED] [3.0/LINQ] Send E-mail on WinForm

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    484

    Resolved [RESOLVED] [3.0/LINQ] Send E-mail on WinForm

    Hi There,

    I am trying to create a button on a windows form that allow user to send e-mail with their default e-mail application, but I have no idea how to do that on a windows form.

    What I want to do is just like a hyperlink on webpage, but when I click on that button, it lauches Microsoft Outlook or Outlook Express to send an e-mail.

    Can you give me some direction on how to archive that? I'm sure it's something easy, I am just didn't get my mind around it.

    Regards

    PlayKid

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [3.0/LINQ] Send E-mail on WinForm

    Call Process.Start and pass a mailto URL. Just as clicking a link with a mailto URL in a web page will open the user's default e-mail client, so too will the equivalent in a WinForms app. You can read about the mailto URL format on the web to see what values to include.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Posts
    484

    Re: [3.0/LINQ] Send E-mail on WinForm

    Thanks, that's the answer I was looking for.

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