473,513 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

Nov 17 '05 #1
4 2033
You will probably have to manually open the file, read its contents, and
then assign the contents to the body of the message.

"dude718" <kh****@socialcircles.com> wrote in message
news:00****************************@phx.gbl...
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

Nov 17 '05 #2
You will have to open the file and stream it as a string into the
Message.Body property.

Yes it is possible.

bill

"dude718" <kh****@socialcircles.com> wrote in message
news:00****************************@phx.gbl...
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

Nov 17 '05 #3

You can use StringBuilder instead of string datatype

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

Reddy

"dude718" <kh****@socialcircles.com> wrote in message
news:00****************************@phx.gbl...
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

Nov 17 '05 #4

You can use StringBuilder instead of string datatype

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

Reddy

"dude718" <kh****@socialcircles.com> wrote in message
news:00****************************@phx.gbl...
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

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3093
by: Roy Barel | last post by:
Can anyone clue me? Here is a sample of the code: The general idea is two switch stylesheets using jscript or javascript in IE6 (Cross platform is irrelevant here) The HTML file: <html> <head> <title>Untitled</title>
8
207651
by: Henri | last post by:
Hi, Is there a way to include a .js file inside a .js file in JavaScript 1.5? Thanx Henri
79
5186
by: pinkfloydhomer | last post by:
I want to scan a file byte for byte for occurences of the the four byte pattern 0x00000100. I've tried with this: # start import sys numChars = 0 startCode = 0 count = 0
2
3219
by: Keith Chadwick | last post by:
I have been running some tests with regards to xsl:include and xsl:import with the same results on both and I am wondering if someone can explain this behavior to me! First off the xslt file is being loaded as in dim myXSLT as new XslTransform() myXSLT.load("scripts/clnt.home.body.xslt") The load craps out when I change the...
5
15803
by: David Elliott | last post by:
I need a control on a Web Page that can accept an HTML Document and will display it. Any help would be appreciated. Thanks, Dave Here is what I was trying...
2
3369
by: s.hong | last post by:
Hello? On the ASP.NET, I can use the class by import declation on the top of page. <%@ page language="vb" explicit="true" aspcompat="false" debug="true"%> <%@ import namespace="System.Data" %> <%@ import namespace="System.Data.SqlClient" %> It's work well for the compiled class files in /bin folder.
13
31356
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one outside of our domain, we get the error.. ** Client found response content type of 'text/html; charset=Windows-1252', but expected 'text/xml' **. We...
11
1301
by: David Abrahams | last post by:
I'm pretty comfortable with Python, but recently I'm constantly finding mysterious issues with import. For example, looking at http://genshi.edgewall.org/browser/trunk/genshi/filters/transform.py the examples use the symbol 'HTML' but it's not defined locally, it's not explicitly imported, and there's no import *. Yet doctest will test...
6
7966
by: Romulo NF | last post by:
Greetings again to everyone, Im back to show this grid componenet i´ve developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data, call determined functions, and edit the data already present What will you need to use the grid? A table with standard markup and an ID to call the...
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.