473,385 Members | 1,908 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,385 software developers and data experts.

cant find the solution

Hi all,
i have a simple Problem. i have written a code in asp.net for sending email.
my code is working fine. but
entire body content is not going only 1000 bytes are going. above 1000 bytes
all are truncted. i want my mail message to carry >1000 bytes.
the error i think are as follows:

X-Mailer : Microsoft CDO for Windows 2000
IPlanet-SMTP-Warning Lines longer than SMTP allows found and truncated.

but for gmail,yahoo...etc . if i send, all the contents are going.but if i
send it to vsnl.net it is accepting only a max of 1000 bytes.
can anyone guide/suggest me to do that.
it is very urgent because all the people who r using othersites except vsnl,
they r getting mails and vsnl.net people are not getting entire messge.

my code is as follows:
using System.Web.Mail;
using System.Text;
using System.IO;
MailMessage mail = new MailMessage( );
mail.To = "ka*************@vsnl.net" ;
mail.From = "ni*************@codetheatre.com" ;
mail.Subject = "Test Mail" ;
mail.BodyFormat = MailFormat.Text;

mail.Body =nizam; //string builder nizam carrying >1000 bytes

SmtpMail.SmtpServer.Insert(0,"127.0.0.1");
SmtpMail.Send( mail );
May 26 '06 #1
1 1448
the email standard RFC 2822 (
http://www.rfc-editor.org/rfc/rfc2822.txt )says:

There are two limits that this standard places on the number of
characters in a line. Each line of characters MUST be no more than
998 characters, and SHOULD be no more than 78 characters, excluding
the CRLF.

if you use text format for mail messages, you should word wrap (insert a
crlf) the lines at 78 chars.

-- bruce (sqlwork.com)
"nizam" <ni***@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
Hi all,
i have a simple Problem. i have written a code in asp.net for sending
email.
my code is working fine. but
entire body content is not going only 1000 bytes are going. above 1000
bytes
all are truncted. i want my mail message to carry >1000 bytes.
the error i think are as follows:

X-Mailer : Microsoft CDO for Windows 2000
IPlanet-SMTP-Warning Lines longer than SMTP allows found and truncated.

but for gmail,yahoo...etc . if i send, all the contents are going.but if i
send it to vsnl.net it is accepting only a max of 1000 bytes.
can anyone guide/suggest me to do that.
it is very urgent because all the people who r using othersites except
vsnl,
they r getting mails and vsnl.net people are not getting entire messge.

my code is as follows:
using System.Web.Mail;
using System.Text;
using System.IO;
MailMessage mail = new MailMessage( );
mail.To = "ka*************@vsnl.net" ;
mail.From = "ni*************@codetheatre.com" ;
mail.Subject = "Test Mail" ;
mail.BodyFormat = MailFormat.Text;

mail.Body =nizam; //string builder nizam carrying >1000 bytes

SmtpMail.SmtpServer.Insert(0,"127.0.0.1");
SmtpMail.Send( mail );

May 26 '06 #2

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

Similar topics

2
by: Tiernan | last post by:
Hey everybody. I'm verry new to PHP and MYSQL and have been working on a form that when it is submitted stores the information into a mysql database. The main problem is that i'm trying to finish...
4
by: pmud | last post by:
Hi I have a website (ASP.NET project using C# ) which is already put up on the server. I need to make some modification to some web pages.So the project files were copied to the a different server...
1
by: pmud | last post by:
In my ASP.Net application I added a required field validator.Before adding this , my application was running fine but after ading this, when i tried to view the .aspx in browser, i got an alert msg...
5
by: johny | last post by:
Program details as follows: Input to the program the exam number and computer arch and programming results for 10 people. Three arrays - ExamNo, Arch and prog are used to hold these items. The...
0
by: Aaron | last post by:
Hi Guys, I have a dbase installed on a network where the clints have linked tables to the database on the server. I found that i had to make some minor changes to the tables on the server...
0
by: dhnriverside | last post by:
Hi peeps I'm trying to access my project/solution files from Visual C#. The solution has been moved from my development server to the client's server, and I'm taking my machine in with me to the...
2
by: andrewanderson | last post by:
hi can anyone help me with this prog. cant find the prob why it cant display cout<<"This is the display of your transaction"<<endl; ifstream fobj; //declare input file stream ...
1
by: foocc | last post by:
Hi, im trying to convert data reports (.dsr) in vb6 to crystal reports in vb.net. However, I cant seems to find it in my Microsoft Visual Studio 2005 Tools for Office. I've tried going to...
2
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev...
6
by: WolfgangS | last post by:
Ok first off, i am a total beginner at this groups stuff and i have no clue how this works. This is probabaly the wrong group for my problem but i will post it anyways. Learning by doing right? ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.