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. Open a new e-mail with attachment in the default e-mail program.

Open a new e-mail with attachment in the default e-mail program.

Scheduled Pinned Locked Moved C#
tutorialquestion
3 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.
  • C Offline
    C Offline
    Christian Wikander
    wrote on last edited by
    #1

    I would like to open a new e-mail with an attachment in the default e-mail program, similar to the functionality in WinZip's context menu. I can open a new e-mail, but I can't make it recognize the attachment. Anyone know how to do this?

    L 1 Reply Last reply
    0
    • C Christian Wikander

      I would like to open a new e-mail with an attachment in the default e-mail program, similar to the functionality in WinZip's context menu. I can open a new e-mail, but I can't make it recognize the attachment. Anyone know how to do this?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I think it is specifc to the mail client. To the best of my knowledge, Outlook Express and Thunderbird disregard attachments in mailto links like this one:

      <a href="mailto:email@email.com?subject=test&attach=c:\file.zip">send email</a>

      Update: Check these out: Open Default mail client in .NET[^] and Programmatically adding attachments to emails in C# and VB.NET[^]

      C 1 Reply Last reply
      0
      • L Lost User

        I think it is specifc to the mail client. To the best of my knowledge, Outlook Express and Thunderbird disregard attachments in mailto links like this one:

        <a href="mailto:email@email.com?subject=test&attach=c:\file.zip">send email</a>

        Update: Check these out: Open Default mail client in .NET[^] and Programmatically adding attachments to emails in C# and VB.NET[^]

        C Offline
        C Offline
        Christian Wikander
        wrote on last edited by
        #3

        I can confirm that they will disregard the attachment when using the mailto: link. This is the way that I have been trying to use. But it must be possible somehow. WinZip and several other archivers are able to do Zip and e-mail, so it must be possible.

        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