VB.NET Forum Moderator
- Aug 17, 2004
- Sydney, Australia
- Programming Experience
I am developing an application that uses the default e-mail client to send an e-mail message to a list of selected contacts. The user selects the desired contacts and the application extracts their e-mail addresses, puts them in a String variable named "emailAddresses" separated by semi-colons and then uses the following code to create the e-mail message:
This method works fine until the length of the argument to Process.Start() exceeds some limit that seems to be a liitle over 2000 characters. When this occurs I get a Win32Exception that says "Access is denied". I've tried using Shell() but it doesn't seem to work with a URL as an argument. Does anyone know of a way around this, seemingly undocumented, limitation of Process.Start(). It is not different in .NET 2.0, so I can't just wait until that reaches release either.
Process.Start("mailto:?bcc=" + emailAddresses)