Results 1 to 4 of 4

Thread: EmailMessage canculate the size length

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Location
    greece athens
    Posts
    115

    Question EmailMessage canculate the size length

    hello,

    how can i canculate the lengh size of the message ??

    i use EmailMessage class

  2. #2
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: EmailMessage canculate the size length

    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.

    Code:
    public int getMessageLength(MailMessage mm){
    return mm.Body.Length;
    }
    In the future just take a look at MSDN, they provide all the members + descriptions of what they do.
    http://msdn.microsoft.com/en-us/libr...ilmessage.aspx

  3. #3
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    Re: EmailMessage canculate the size length

    Can you elaborate what you mean by the size of the message? are you talking about the entire size of the email message?

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  4. #4
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: EmailMessage canculate the size length

    I was looking through the forum and noticed you posted the same question twice.

    http://www.vbforums.com/showthread.php?t=620895

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width