System.Diagnostics.Process.Start("mailto:"...

  • Thread starter Thread starter Jan Nielsen
  • Start date Start date
J

Jan Nielsen

Hi
I build a string of email receivers
Then I send it using
System.Diagnostics.Process.Start("mailto:"

But when the string is longer than 2024 characters I receive an Access
Denied exception.

If I do the same thing in Access XP (DoCmd.SendEmail) , there is no problem.

Anyone who knows if this a setting ie in the Windows Registry I can change?
Best regards

Jan
 
* "Jan Nielsen said:
I build a string of email receivers
Then I send it using
System.Diagnostics.Process.Start("mailto:"

But when the string is longer than 2024 characters I receive an Access
Denied exception.

That's "by design".
If I do the same thing in Access XP (DoCmd.SendEmail) , there is no problem.

Why not use the 'System.Web.Mail' namespace to send mail?
 
Hi Herfried
Thanks for answering

I am not sure about this smtpserver stuff.
I do not trust it to be safe. I don't want to be part of an Denial of
service attack.

So I think I will just chunk the receiver string up to bits of <2024 chars
and generate as many as possible.

Also it does not seem to be possible to preview the mail, which I always do.


Best regards

Jan
 
Back
Top