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

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
 
M

Marina

You will probably have to manually open the file, read its contents, and
then assign the contents to the body of the message.
 
W

William F. Robertson, Jr.

You will have to open the file and stream it as a string into the
Message.Body property.

Yes it is possible.

bill
 
S

Srinivasa Reddy K Ganji

You can use StringBuilder instead of string datatype

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

Reddy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top