is there a way to import *.html file to message.body

  • Thread starter Thread starter dude718
  • Start date Start date
D

dude718

is there a way to import *.html file to message.body
string element of mailmessage class without have to
actually type it up. Also is the maximum limit to how
much can a string hold.
I have already set the message.format to html, but i want
to some how automatically import the message.body string
from an *.html file rather than having to type it up.
can anyone help
thank
 
You will probably have to manually open the file, read its contents, and
then assign the contents to the body of the message.
 
You will have to open the file and stream it as a string into the
Message.Body property.

Yes it is possible.

bill
 
You can use StringBuilder instead of string datatype

StringBuilder builder = new StringBuilder();
builder.Append(someString);

Reddy
 
Back
Top