473,396 Members | 2,109 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.

email / textbox limitation

mg
The simple e-mail webform in the shown in the code below sends the characters in its textbox as an email message correctly when text of any length is pasted into the textbox but not when large numbers of characters are typed into the textbox. The limit to the number of characters that you can type into the textbox and still have them ALL sent as email is somewhere around 1000. After the number of characters typed into the textbox exceeds something like 1000, the resulting e-mail message is truncated.

What can be done to make this app work when large numbers of characters are entered from the keyboard?

private void Button1_Click(object sender, System.EventArgs e)
{
MailMessage mess = new MailMessage();
mess.From = "te****@xxx.com";
mess.To = "te****@xxx.com";
mess.Subject = "test";
mess.BodyFormat = MailFormat.Text;
mess.Body = TextBox1.Text;
SmtpMail.SmtpServer = "mail.xxx.com";
SmtpMail.Send(mess);
}
Nov 18 '05 #1
2 1263
"mg" <mg@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
.. . .
The limit to the number of characters that you can type into the
textbox and still have them ALL sent as email is somewhere around 1000.
.. . . What can be done to make this app work when large numbers of
characters are entered from the keyboard?


[New to PostBacks and stuff, but...]
Does your HTML Form specify "method=Get"? If so, that may
well be your problem. The actual limit differs with versions of IIS,
but a 1000-odd character limit on QueryStrings, which "method=Get"
would be subject to, is quite typical.

HTH,
Phill W.
Nov 18 '05 #2
mg
The results are the same for both method="Get" and method="Post"
"Phill. W" wrote:
"mg" <mg@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
.. . .
The limit to the number of characters that you can type into the
textbox and still have them ALL sent as email is somewhere around

1000.
.. . .
What can be done to make this app work when large numbers of
characters are entered from the keyboard?


[New to PostBacks and stuff, but...]
Does your HTML Form specify "method=Get"? If so, that may
well be your problem. The actual limit differs with versions of IIS,
but a 1000-odd character limit on QueryStrings, which "method=Get"
would be subject to, is quite typical.

HTH,
Phill W.

Nov 18 '05 #3

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

Similar topics

6
by: Suresh Kumaran | last post by:
Hi All, Does anybody know the sytax in VB.NET to write the contents of a multiline text box to a text file? Appreciate help. Suresh
3
by: MLH | last post by:
I'm having trouble pasting a VLS into a textbox control on FormB. FormB is open in form view. I'm trying to do it from a procedure running in FormA. I'm up against 2048-Char limits no matter how...
0
by: Angel | last post by:
I created as popup window using the createPopup() method. The innerHTML that will be displayed in the popup contains a textbox. For some reason I cannot key into the textbox. Is there a limitation...
7
by: Andrew | last post by:
VB .NET 2003, WinXP Pro: Adding text to a text box with the TextBox.AppendText method limits the amount of text in the textbox to 32K. I have a short program that uses the GetFiles function of...
0
by: d.steininger | last post by:
Hi there! Is there a way to bind a Textbox.Text to a ScrollBar.Value (not the Textbox-own Scrollbar) and vice versa? The Problem: I have to deal with two controls. The Textbox should accept...
2
by: Calvin KD | last post by:
Hi everyone, I have a number of textboxes, lined up in a html table. I have split the table into different columns. The column widths are all relative, that is, % rather pixels or points so that...
2
by: NerdRunner | last post by:
I have added a textbox to my web form. When I attempt to set the text of this control (txtSSMaterial.text = "some text") I get the following error - error BC30451: Name 'txtSSMaterial' is not...
7
by: robert.waters | last post by:
I have an Access database frontend linked via ODBC to a large (gigabytes) mysql database. I need to view a large amount of data in a a textbox (variable up to 300K), but I receive a 'there isnt...
5
by: Max | last post by:
I tried the following with Web Dev 2008 with -and- without Ajax Extension 3.5 - using IE 7 I reduced my webform1 to a Scriptmanager and an Updatepanel with 2 textbox and a button. I type something...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
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.