System.Web.Mail Body property Limitation?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

We're having problems using system.web.mail.mailmessage to send out HTML emails. The email is actually sent without error and arrives at the destination as you would expect, the problem is that the received email content that has been set using the mailmessage.body property is for some reason truncated. From our testing it appears that the body property has a limit of around 9000 characters. The truncating also manifests itself bizarely, rather than take the first 9000 characters and chop the rest off it seems to take everything after the 9000 character limit (??). Has anybody any ideas whether there is a way of increasing this limit? I am struggling to come to terms that there is a limit on this property as 9000 characters isn't really a lot of text, so I'm hoping there is an answer out there

Thanks
Mark
 
May be there is a size limitation on the server. Some servers have the
ability to set this. You can either try using a different server and see if
you get the same results or if you don't have another server use another
component and see if that yields the same results. Take a look at the
FreeSMTP.net assembly. http://www.freesmtp.net


Mark Baker said:
Hi,

We're having problems using system.web.mail.mailmessage to send out HTML
emails. The email is actually sent without error and arrives at the
destination as you would expect, the problem is that the received email
content that has been set using the mailmessage.body property is for some
reason truncated. From our testing it appears that the body property has a
limit of around 9000 characters. The truncating also manifests itself
bizarely, rather than take the first 9000 characters and chop the rest off
it seems to take everything after the 9000 character limit (??). Has anybody
any ideas whether there is a way of increasing this limit? I am struggling
to come to terms that there is a limit on this property as 9000 characters
isn't really a lot of text, so I'm hoping there is an answer out there.
 
Back
Top