473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
Nov 20 '05 #1
2 9674
* "Jan Nielsen" <Re**************@tiscali.dk> scripsit:
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?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
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
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> skrev i en meddelelse
news:bn************@ID-208219.news.uni-berlin.de...
* "Jan Nielsen" <Re**************@tiscali.dk> scripsit:
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?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tero Partanen | last post by:
Hello! I'm writing about a rather peculiar problem I'm having with Access2000. I have a table in which I have created one hyperlink-type field. I have given the field a default value which is...
11
by: T O | last post by:
Hi all, I am very new to C programming and have come across problem. My programme has opened and created a text document on the hard drive. The document name is stored in a string called...
11
by: Paminu | last post by:
Is there something like system("PAUSE") for linux?
175
by: Ken Brady | last post by:
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be...
14
by: Richard Thornley | last post by:
Hello, I realize that this is a very basic question but is there an advantage to using Me.ControlName.Text over just using ControlName.Text? I have been leaving the Me. off but would include it...
1
by: Chad Dittmer | last post by:
I'd appreciate anyone's help with this. I'm trying to open an email window and have it auto fill from vb.net. It works, except I can't get line breaks in the body. I've tried: vbLf vbCrLf...
15
by: cj | last post by:
How can I get a button in VB to send the contents of a text box via email in a manner similar to the "Send To\Mail Recipient" functionality that you can select via right clicking a file in Windows...
0
by: Pete | last post by:
Hi All, I'm new to this so please correct me if I'm wrong. I have written a small program which holds details for task information. the program holds an email address, i created a button which...
6
by: Otto Wyss | last post by:
I've tried to start the local mail program with window.open('mailto:email@address.com'); but that doesn't work. Is this somehow possible? O. Wyss
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.