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. Problem launching email client

Problem launching email client

Scheduled Pinned Locked Moved C#
questionhelp
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.
  • G Offline
    G Offline
    George_Lucian
    wrote on last edited by
    #1

    Hi! I am trying to launch from code the default email client. Here's how I do it: emlText = "mailto:" + strAddress + "?subject=" + strSubject + "&body=" + strBody; System.Diagnostics.Process.Start(emlText); If the body text is smaller than 2024 characters the client launches perfectly. If it exceeds 2024 characters I receive an Access Denied exception. Can anyone please tell me how can I overcome this problem? Thanks

    A 1 Reply Last reply
    0
    • G George_Lucian

      Hi! I am trying to launch from code the default email client. Here's how I do it: emlText = "mailto:" + strAddress + "?subject=" + strSubject + "&body=" + strBody; System.Diagnostics.Process.Start(emlText); If the body text is smaller than 2024 characters the client launches perfectly. If it exceeds 2024 characters I receive an Access Denied exception. Can anyone please tell me how can I overcome this problem? Thanks

      A Offline
      A Offline
      althamda
      wrote on last edited by
      #2

      The reason it's not working is because the maximum length of a query string in IE is 2048 characters. Check System.Web.Mail for sending emails.

      G 1 Reply Last reply
      0
      • A althamda

        The reason it's not working is because the maximum length of a query string in IE is 2048 characters. Check System.Web.Mail for sending emails.

        G Offline
        G Offline
        George_Lucian
        wrote on last edited by
        #3

        I figured that out ...but I do not trust SMTP... maybe there is another way

        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