Guest nizamforum2 Posted May 26, 2006 Share Posted May 26, 2006 Hi all,i have a simple Problem. i have written a code in asp.net for sending email.my code is working fine. butentire 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 of mail 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 = "kalpana_sampath@vsnl.net" ;mail.From = "nizamuddin.syed@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 );Thanks in advance,nizam. Link to comment Share on other sites More sharing options...
pulpfiction Posted June 8, 2006 Share Posted June 8, 2006 I guess you can Try using MailFormat.HTML instead of sending the content in the text format using Mail.BodyFormat.Chances are that few servers that may reject text messages.Normaly the mail should go through, or may be some setting in that mail server to block your bigger mail content. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now