hello,
how can i canculate the lengh size of the message ??
i use EmailMessage class
Printable View
hello,
how can i canculate the lengh size of the message ??
i use EmailMessage class
You mean System.Net.Mail.MailMessage?
The actual message that the user will read is the Body. The body is a string, so you would use String.Length to get the length of the string.
In the future just take a look at MSDN, they provide all the members + descriptions of what they do.Code:public int getMessageLength(MailMessage mm){
return mm.Body.Length;
}
http://msdn.microsoft.com/en-us/libr...ilmessage.aspx
Can you elaborate what you mean by the size of the message? are you talking about the entire size of the email message?
I was looking through the forum and noticed you posted the same question twice.
http://www.vbforums.com/showthread.php?t=620895