cant find the solution



Hi all,
i have a simple Problem. i have written a code in 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 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 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 = "(e-mail address removed)" ;
mail.From = "(e-mail address removed)" ;
mail.Subject = "Test Mail" ;
mail.BodyFormat = MailFormat.Text;

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

SmtpMail.Send( mail );



bruce barker \(\)

the email standard RFC 2822 ( )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 (

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question