473,938 Members | 25,179 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Diagnost ics.Process.Sta rt("mailto:".. .

Hi
I build a string of email receivers
Then I send it using
System.Diagnost ics.Process.Sta rt("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.SendEmai l) , 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 9706
* "Jan Nielsen" <Re************ **@tiscali.dk> scripsit:
I build a string of email receivers
Then I send it using
System.Diagnost ics.Process.Sta rt("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.SendEmai l) , there is no problem.


Why not use the 'System.Web.Mai l' 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.Diagnost ics.Process.Sta rt("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.SendEmai l) , there is no

problem.
Why not use the 'System.Web.Mai l' 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
7478
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 an email-address. The default value is (for example): "mailto:mymail@here.com". Access2000 correctly inserts that information into the field everytime
11
8476
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 "output". At the end of the program, I want to open the outputfile.txt automatically using notepad.
11
39937
by: Paminu | last post by:
Is there something like system("PAUSE") for linux?
175
9016
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 changed". This is very much against my instincts. Can anyone offer some solid design guidelines for me? Thanks in advance....
14
10807
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 if there are benefits. Thanks, Richard
1
2990
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 Environment.NewLine sendkeys <br> and multiple "&body=" Nothing happens with the above.
15
8611
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 Explorer? I want the user to click a button and it lunch the users default email client and put the contents of a multi line text box in the body of the message and the contents of another text box in the title box and be sitting there read for...
0
2176
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 use System.Diagnostics.Process class in vb.net to start a "Mailto:" + email address. This works fine, however I wanted to expand on this some more when the user had sent the email I wanted to do something afterwards. so looked around and found...
6
2700
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
10125
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
11281
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10649
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9853
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6072
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6286
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4900
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4441
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3495
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.