ufpcit
asked on
Process.Start - Is there a MailTo Length Limitation?
I have a DataGridView filled with contacts and want the ability for a user to select groups of users and send an email. I accomplished this with a call to Process.Start with a mailto: string passed in as an argument. This works for small groups, but seems to have a size limitation around 2000 characters. Can anyone confirm this? Is there a better technique for allowing distribution lists like this from .NET?
But you're using .NET classes to send email or just adding all contacts to outlook message form?
if your distribution list exist in your exchange server, you can use System.Net.Mail. have a look at http://www.emoreau.com/Entries/Articles/2007/09/Using-SystemNetMail.aspx
ASKER
My distribution lists do not exist in Exchange. It's basically a contact table that spans departments and I want the ability to select a group of records in the grid, right click and send them mail. I'm using the Process.Start function and sending a string that is the "mailto:Joe.Smith@co.com;J ane.Smith@ co.com", which works except that either the Process.Start or the Mailto syntax are hitting a maximum length. The error message I get, simply indicates "Access Denied".
Using mailto (causing a new outlook mail message) you're limited to 50 emails (i think is that the limit).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The 2083 limit makes sense. Thanks Emoreau. I changed the technique to use the Outlook 11 library to bypass this limitation. Works great now!