473,403 Members | 2,222 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,403 software developers and data experts.

System.Web.Mail.MailMessage gets truncated

Hi,

When I use System.Web.Mail.MailMessage to send an e-mail, my message gets
truncated. It's 12kB instead of 140kB.
How can I solve this??

Bertus
Nov 17 '05 #1
5 2208
No. The same message doesn't get truncated when it's sent through my outlook
client instead of through this aspx page.

"Marina" <zl*******@nospam.hotmail.com> schreef in bericht
news:Oj**************@TK2MSFTNGP09.phx.gbl...
Does your SMTP server have a size limit for messages?

"Bertus Dam" <b.***@gmx.net> wrote in message
news:eU**************@tk2msftngp13.phx.gbl...
Hi,

When I use System.Web.Mail.MailMessage to send an e-mail, my message gets truncated. It's 12kB instead of 140kB.
How can I solve this??

Bertus


Nov 17 '05 #2
Hi Bertus,

Please try to use the following samples to reproduce your problem and tell
me how to reproduce your problem on my side step by step. I certainly
appreciate your time.

HOWTO: Send E-mail Programmatically with System.Web.Mail and Visual Basic
NET
http://support.microsoft.com/default...b;en-us;314201

HOWTO: Send E-mail Programmatically with System.Web.Mail and Visual C# .NET
http://support.microsoft.com/default...b;en-us;310273

Best regards,

Jacob Yang
Microsoft Online Partner Support
<MCSD>
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #3
Hi Jacob,

I'm doing the exact same thing as in the sample, only without an attachment.

I use a very large string in the oMsg.Body property. When I set a break
point on SmtpMail.Send(oMsg) and I look at oMsg.Body in the immediate
window, everything is ok. But when I receive the message in my outlook
mailbox the message is truncated.

Bertus

"Jacob Yang [MSFT]" <ji***@online.microsoft.com> schreef in bericht
news:P5**************@cpmsftngxa06.phx.gbl...
Hi Bertus,

Please try to use the following samples to reproduce your problem and tell
me how to reproduce your problem on my side step by step. I certainly
appreciate your time.

HOWTO: Send E-mail Programmatically with System.Web.Mail and Visual Basic
NET
http://support.microsoft.com/default...b;en-us;314201

HOWTO: Send E-mail Programmatically with System.Web.Mail and Visual C# ..NET http://support.microsoft.com/default...b;en-us;310273

Best regards,

Jacob Yang
Microsoft Online Partner Support
<MCSD>
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #4
Hi Bertus,

You mentioned that you used "a very large string". Is it possible for you
to show this very large string?

Based on my research and experience, this is some size limitation in this
issue. As a workaround, what do you think about put this large string in
the attachment?

I am looking forward to hearing from you.

Best regards,

Microsoft Online Partner Support
<MCSD>
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #5
Hello Jacob,

First of all, thanks for your support.
This very large string is a html-formatted table from a database. It could
be any table in any database, it just puts <tr> and <td> tags in it, which
is then rendered beautifully in Word.

I already provide the option of returning this table as an attachment, but
it is crucial to my application that the option of having this table in the
body of the e-mail is also provided. Is there any way around this size
limitation?

Bertus

"Jacob Yang [MSFT]" <ji***@online.microsoft.com> schreef in bericht
news:sn**************@cpmsftngxa06.phx.gbl...
Hi Bertus,

You mentioned that you used "a very large string". Is it possible for you
to show this very large string?

Based on my research and experience, this is some size limitation in this
issue. As a workaround, what do you think about put this large string in
the attachment?

I am looking forward to hearing from you.

Best regards,

Microsoft Online Partner Support
<MCSD>
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #6

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

Similar topics

4
by: Trond A. S. Andersen | last post by:
Hi, all! I'm trying to use the System.Web.Mail. "package" combinded with System.Web.Mail.SmtpMail in order to send MS Excel spreadsheets attached to mail messages. However, sending one single...
20
by: Adrian | last post by:
What does this error mean? Could not access CDO Message Object. Many thanks.
3
by: Phil Mc | last post by:
Hi has anyone come accross the problem.... with referance to System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail THIS WORKS FINE mail=new MailMessage(); mail.From =...
1
by: Jitesh Sinha | last post by:
Hi, I am running Windows 2003/ IIS 6.0. I was stuck with rather a abnormal behaviour of System.Web.mail class. It was truncating the message body after 3,071 character. The code i was testing...
5
by: martin | last post by:
Hi, I have created a class that is totally seperate from my web application. However this class is used extensivly by the web application for stuff like data access. I wish to add a function to...
3
by: pmud | last post by:
Hi, I have ab ASP.Net Application in which I need to send e-mail on button click. Even though my C# code for that is correct.I am getting the following error:: I think the following error can be...
1
by: asnowfall | last post by:
I am creating MailMessage out of already existing email message. My existing message has few custom properties. I wan to add them to System.Net.Mail.MailMessage How to add custom properties? ...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
1
by: maflatoun | last post by:
Hi everyone, I'm coverting some of our code here from the old way of send email in ..net 1.1 to the new .net 2.0. However, everyone I switch the code the new method there is a delay of 1-2...
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?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
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
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.