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. The Lounge
  3. mailto and Attachments

mailto and Attachments

Scheduled Pinned Locked Moved The Lounge
csharpcomtutorialquestion
9 Posts 5 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.
  • J Offline
    J Offline
    J Hurrell
    wrote on last edited by
    #1

    This is going to drive me crazy. I'm trying to create a mailto URL that includes attachments. I found an example here on CP but it doesn't work for me. My default email client is Outlook and it complains about a parameter. Now, I suspect it can be done because WinZip supports "Zip and Email." Perhaps WinZip isn't using the mailto URL but if it isn't how is it opening the default email client. Any ideas or solutions? --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague

    C H N D 4 Replies Last reply
    0
    • J J Hurrell

      This is going to drive me crazy. I'm trying to create a mailto URL that includes attachments. I found an example here on CP but it doesn't work for me. My default email client is Outlook and it complains about a parameter. Now, I suspect it can be done because WinZip supports "Zip and Email." Perhaps WinZip isn't using the mailto URL but if it isn't how is it opening the default email client. Any ideas or solutions? --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague

      C Offline
      C Offline
      Chris Richardson
      wrote on last edited by
      #2

      Simple MAPI is an easy way to do it. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/_mapi1book_simple_mapi.asp[^] Chris Richardson

      1 Reply Last reply
      0
      • J J Hurrell

        This is going to drive me crazy. I'm trying to create a mailto URL that includes attachments. I found an example here on CP but it doesn't work for me. My default email client is Outlook and it complains about a parameter. Now, I suspect it can be done because WinZip supports "Zip and Email." Perhaps WinZip isn't using the mailto URL but if it isn't how is it opening the default email client. Any ideas or solutions? --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague

        H Offline
        H Offline
        Hans Dietrich
        wrote on last edited by
        #3

        It can't be done with mailto. You can do it with MAPI - see my article here for an example. Look at the file SendMail.cpp.

        J 1 Reply Last reply
        0
        • J J Hurrell

          This is going to drive me crazy. I'm trying to create a mailto URL that includes attachments. I found an example here on CP but it doesn't work for me. My default email client is Outlook and it complains about a parameter. Now, I suspect it can be done because WinZip supports "Zip and Email." Perhaps WinZip isn't using the mailto URL but if it isn't how is it opening the default email client. Any ideas or solutions? --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague

          N Offline
          N Offline
          Nick Parker
          wrote on last edited by
          #4

          If you read the mailto URL scheme[^] it states that only the subject and body header can be expected to be resolved. WinZip isn't using the mailto format to perform this action. - Nick Parker
          My Blog | My Articles

          J 1 Reply Last reply
          0
          • J J Hurrell

            This is going to drive me crazy. I'm trying to create a mailto URL that includes attachments. I found an example here on CP but it doesn't work for me. My default email client is Outlook and it complains about a parameter. Now, I suspect it can be done because WinZip supports "Zip and Email." Perhaps WinZip isn't using the mailto URL but if it isn't how is it opening the default email client. Any ideas or solutions? --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            The following worked for me using Outlook 2000. I just typed it into the Run box. mailto:fname.lname@mycompany.com&Subject=Test&Attach="c:\boot.ini"


            "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

            J 1 Reply Last reply
            0
            • N Nick Parker

              If you read the mailto URL scheme[^] it states that only the subject and body header can be expected to be resolved. WinZip isn't using the mailto format to perform this action. - Nick Parker
              My Blog | My Articles

              J Offline
              J Offline
              J Hurrell
              wrote on last edited by
              #6

              I'd read the scheme and it seems that some mail clients adhere to the scheme and some allow the "attach" or "attachment" option. Bummer. --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague

              1 Reply Last reply
              0
              • D David Crow

                The following worked for me using Outlook 2000. I just typed it into the Run box. mailto:fname.lname@mycompany.com&Subject=Test&Attach="c:\boot.ini"


                "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

                J Offline
                J Offline
                J Hurrell
                wrote on last edited by
                #7

                Microsoft must have eliminated that from Outlook 2003. I know that there was scattered support for attach. Thanks anyway. --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague

                1 Reply Last reply
                0
                • H Hans Dietrich

                  It can't be done with mailto. You can do it with MAPI - see my article here for an example. Look at the file SendMail.cpp.

                  J Offline
                  J Offline
                  J Hurrell
                  wrote on last edited by
                  #8

                  I should also have clarified that I need the dialog to remain open so the user can edit the message. Much like WinZip does. --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague

                  H 1 Reply Last reply
                  0
                  • J J Hurrell

                    I should also have clarified that I need the dialog to remain open so the user can edit the message. Much like WinZip does. --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague

                    H Offline
                    H Offline
                    Hans Dietrich
                    wrote on last edited by
                    #9

                    That is exactly what my code does - it brings up the default email client, and waits for the user to hit send (or edit the message).

                    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