I have written a VB.Net program which generates emails via SmtpClient creating a mailmessage with a html formatted body with no attachments.
All OK so far.
However I would like to detect in the code what the size of the generated email message is - Mailmessage class doesnt seem to have a size property.
Anybody have any ideas?
Just for interest I counted the number of characters in each email body and (rounding up to the nearest K) seemed to be either 4 or 5K less than the size shown in Outlook when i receive them, so it seems i can make an approximation.
Thanks in anticipation.
All OK so far.
However I would like to detect in the code what the size of the generated email message is - Mailmessage class doesnt seem to have a size property.
Anybody have any ideas?
Just for interest I counted the number of characters in each email body and (rounding up to the nearest K) seemed to be either 4 or 5K less than the size shown in Outlook when i receive them, so it seems i can make an approximation.
Thanks in anticipation.