Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Launch Mail Recipient programmatically

Launch Mail Recipient programmatically

Scheduled Pinned Locked Moved C#
csharphelplearningworkspace
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NewbieDude
    wrote on last edited by
    #1

    Hey howzit, I am very new to the C# .NET environment and am learning every day, but I need to be able to launch the default mail recipient e.g. Outlook from my C# application. Could anyone help me out, please try keep the code simple. Much appreciated!

    T 1 Reply Last reply
    0
    • N NewbieDude

      Hey howzit, I am very new to the C# .NET environment and am learning every day, but I need to be able to launch the default mail recipient e.g. Outlook from my C# application. Could anyone help me out, please try keep the code simple. Much appreciated!

      T Offline
      T Offline
      tarasn
      wrote on last edited by
      #2

      The following snippet launch the systems default email client System.Diagnostics.Process.Start("mailto:test@test.com"); DevIntelligence.com - My blog for .Net Developers

      N 1 Reply Last reply
      0
      • T tarasn

        The following snippet launch the systems default email client System.Diagnostics.Process.Start("mailto:test@test.com"); DevIntelligence.com - My blog for .Net Developers

        N Offline
        N Offline
        NewbieDude
        wrote on last edited by
        #3

        Hey there, Thanks for that code. Is there way of specifying which file(s) to include in the new email as attachments?

        T 1 Reply Last reply
        0
        • N NewbieDude

          Hey there, Thanks for that code. Is there way of specifying which file(s) to include in the new email as attachments?

          T Offline
          T Offline
          tarasn
          wrote on last edited by
          #4

          I don't know, but you can use third party component like DotNetOpenMail[^] .Using "mailto:" you can specify subject ,body - but not file . DevIntelligence.com - My blog for .Net Developers

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups