Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SmtpMail.Send messages get truncated
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
SmtpMail.Send messages get truncated
Miscellaneous
Thread ID:
00663316
Message ID:
00663316
Views:
50
In VB.Net, I use this small method:

Private Sub SendMail(ByVal pstrSubject As String, ByRef pstrMessage As String)
Dim ms As New MailMessage()

ms.From = "from@from.com"
ms.To = "to@to.com"
ms.Subject = pstrSubject
ms.Body = pstrMessage
ms.BodyFormat = MailFormat.Text
SmtpMail.SmtpServer = "my.server.com"
SmtpMail.Send(ms)
'MsgBox("pstrMessage=" + Len(pstrMessage).ToString + vbCrLf + "ms.Body=" + Len(ms.Body).ToString)
End Sub

My message is about 10,000 characters long and is getting truncated around 3300 characters.

Why?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Next
Reply
Map
View

Click here to load this message in the networking platform