473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Setting the Font and the color to my message

Hi EveryBody:

I am doing windows application project by using Vb.Net. The function of this
project is to send e-mail by adding system.web.dll as refrance to my project
and using system.web.mail class to do so.

My question is:

When I write the message and I change the font to Verdana and change the
color to blue the message recived to the" To Address" as text message without
changing in font or color. I tried this in the two format for the e-mail
message either Text or HTML, but nothing Change ?

So any one can told me how can I send my message and I grantee that it will
recived as the font and color that I setted to it ?

Any help or redirection will be appreciated

regard's

Husam
Jan 9 '06 #1
1 1449
I'm assuming your writing this message in a RichTextBox, then sending the
string found in the RTB's Text proprety to the recipient, correct?

You have a couple of problems.

The Text property in the RTB doesn't include any formatting information,
it's just plain text. This is fine if you want your recipients to see
unformatted plain text.

Use the RTF property of the RichTextBox if you want to retain all the RTF
formatting information in the text, including color and bolding or italics
information.

Second, you can't send an RTF string to an email recipient and expect it to
render properly. Most email apps won't render RichTextFormatted text at all.
So, you have to convert the RTF Text to HTML. There is nothing in the .NET
Base Class Library that will do this for you. You'll need either a 3rd party
library to do this (Google for "RTF to HTML" to find some), or you'll have to
write your own conversion code. I'd search for a component because I loath
re-inventing the wheel.

--
<i><b>RageInTheMachine9532</b></i><font size="-2">
"<i>...a pungent, ghastly, stinky piece of cheese!</i>" <b>-- The Roaming
Gnome</b></font>
"Husam" wrote:
Hi EveryBody:

I am doing windows application project by using Vb.Net. The function of this
project is to send e-mail by adding system.web.dll as refrance to my project
and using system.web.mail class to do so.

My question is:

When I write the message and I change the font to Verdana and change the
color to blue the message recived to the" To Address" as text message without
changing in font or color. I tried this in the two format for the e-mail
message either Text or HTML, but nothing Change ?

So any one can told me how can I send my message and I grantee that it will
recived as the font and color that I setted to it ?

Any help or redirection will be appreciated

regard's

Husam

Jan 9 '06 #2

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

Similar topics

3
by: Jason Kistler | last post by:
I am having some serious issues trying to set the "importance" of an ASP email. I am using the CDO.Message object. Here is the code: <% Dim recipients recipients = Request.Form("Jason") &...
9
by: netclectic | last post by:
I'm dynamically adding options to a select list in javascript and i need to be able to set the height of the option, but setting style.height has not effect, I also tried style.pixelHeight but no...
18
by: fleemo17 | last post by:
My organization is developing a set of "standards" for websites built inhouse. The first question that comes to mind is what would be a good standard default size for <p> text? 12 point? Which...
5
by: dixie | last post by:
I want to be able to set the font size and font type for text in a text box on a report using VBA. I wan't to be able to control it from a setting in a table. The problem is that I don't know the...
1
by: Mervin Williams | last post by:
I am having a problem setting the CSSClass property of a my Label control. I set CSSClass property, but its not taking the font style settings. Here is my style: ..TabText { font-weight:...
14
by: Roger Withnell | last post by:
How to I find out what size text the browser is set to? Thanks in anticipation.
2
by: Charleees | last post by:
Hi all, I have a DataGrid with Template Columns..... There are LAbels,Linkbuttons in the Single Row.. I have to set the Constant Column width for those Template Columns in Grid... Wat...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
6
by: Steve | last post by:
I have a div with two - three paragrahs in it. Each paragraph has its own inline style tag with its own font size setting. When I set the last paragraph's font size the font sizes for ALL of...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.