Results 1 to 3 of 3

Thread: message size calculation

  1. #1

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

    Question message size calculation

    hello,

    i am using the EmailMessage class , my code:

    EmailMessage message = new EmailMessage(service);
    message.Subject = "Interesting";
    message.Body = "The proposition has been considered.";
    message.ToRecipients.Add("[email protected]");
    message.Attachments.AddFileAttachment("C:\\FB_Activationform_24-03-2010nd User(8).xls");


    how can i calculate the message size? is there any way to do that?

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: message size calculation

    Just addup the size of the body + sum of all attachtments
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  3. #3

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

    Re: message size calculation

    Quote Originally Posted by Lightning View Post
    Just addup the size of the body + sum of all attachtments
    yes but how can i do that i tried size methos ( message.size) but it is not the right way . do you have code sample?

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