Problem launching email client
-
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
-
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
-
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.
I figured that out ...but I do not trust SMTP... maybe there is another way