One of the functions in my application is to send out a block email via the user's default email client, using "mailto".
However, I am running into a problem:
I loop through the rows of my dataset to extract the email addresses and add them to a string, then use the following code to generate the email:
All well and good except that it truncates the string when it is entered into the bcc field. Truncation is at 2157 characters.
I know that bccStr itself includes all the email addresses, as I have tested it by writing the string to the clipboard. Strangely, I can paste the string from the clipboard into the bcc field of Outlook without any truncation, so it's not a limit set by Outlook. I'm guessing it must therefore be a limitation of the "mailto" command?
Any ideas please?
At the moment, my work around has been to automatically create a number of separate emails, each with say 50 addressees. It works, but it's not very elegant.
Thanks.
Tim
However, I am running into a problem:
I loop through the rows of my dataset to extract the email addresses and add them to a string, then use the following code to generate the email:
VB.NET:
System.Diagnostics.Process.Start("mailto:" & "?bcc=" & bccStr & "&subject=" & (mainForm.eventname) & " " & (Year(mainForm.eventdate)))
All well and good except that it truncates the string when it is entered into the bcc field. Truncation is at 2157 characters.
I know that bccStr itself includes all the email addresses, as I have tested it by writing the string to the clipboard. Strangely, I can paste the string from the clipboard into the bcc field of Outlook without any truncation, so it's not a limit set by Outlook. I'm guessing it must therefore be a limitation of the "mailto" command?
Any ideas please?
At the moment, my work around has been to automatically create a number of separate emails, each with say 50 addressees. It works, but it's not very elegant.
Thanks.
Tim