473,789 Members | 2,544 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 2044
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****@socialc ircles.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****@socialc ircles.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****@socialc ircles.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****@socialc ircles.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
3105
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
207672
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
5292
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
3228
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 xsl:include, tried all of the following
5
15820
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
3378
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
31422
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 can discover the web service by typing in the url of the asmx so we know the server can 'see' it...
11
1325
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 this module and it passes with flying colors. It turns out HTML is defined in genshi.input. How...
6
7998
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 script that will turn the table into a grid Parameters: tabelaID => id of the table that will...
0
9663
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10404
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10195
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6765
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.