473,378 Members | 1,541 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,378 software developers and data experts.

HTML tag in Email Content

I know to send e-mail, I can do the following:
Dim newMail As New MailMessage
newMail.From = "fr**@server.com"
newMail.To = "to@server.com"
newMail.Subject = "The Subject"
newMail.Body = "The Content"
SmtpMail.Send(newMail)

I tried to key in things like "<strong>Comment:</strong> No<br />
<strong>Url:</strong> <a href='www.yahoo.com'>" in the content, but it didn't
come out as what I expected. How to add html tag in the content of the email?
Nov 19 '05 #1
2 915
newMail.BodyFormat = MailFormat.Html

--
HTH
----------------
Dave Fancher
http://davefancher.blogspot.com

"wrytat" <wr****@discussions.microsoft.com> wrote in message
news:25**********************************@microsof t.com...
I know to send e-mail, I can do the following:
Dim newMail As New MailMessage
newMail.From = "fr**@server.com"
newMail.To = "to@server.com"
newMail.Subject = "The Subject"
newMail.Body = "The Content"
SmtpMail.Send(newMail)

I tried to key in things like "<strong>Comment:</strong> No<br />
<strong>Url:</strong> <a href='www.yahoo.com'>" in the content, but it
didn't
come out as what I expected. How to add html tag in the content of the
email?

Nov 19 '05 #2
Thanks. I have another question, is there any reason for me always receiving
the same e-mail twice when I only send (i.e. SmtpMail.Send(newMail)) once?

"Dave Fancher" wrote:
newMail.BodyFormat = MailFormat.Html

--
HTH
----------------
Dave Fancher
http://davefancher.blogspot.com

"wrytat" <wr****@discussions.microsoft.com> wrote in message
news:25**********************************@microsof t.com...
I know to send e-mail, I can do the following:
Dim newMail As New MailMessage
newMail.From = "fr**@server.com"
newMail.To = "to@server.com"
newMail.Subject = "The Subject"
newMail.Body = "The Content"
SmtpMail.Send(newMail)

I tried to key in things like "<strong>Comment:</strong> No<br />
<strong>Url:</strong> <a href='www.yahoo.com'>" in the content, but it
didn't
come out as what I expected. How to add html tag in the content of the
email?


Nov 19 '05 #3

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

Similar topics

4
by: Ann | last post by:
Hi, I am trying to send a html email from a php script. This script emails a common information to all the members in the database. The only problem is I cannot specify colors, hyperlinks...
17
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
8
by: VB Programmer | last post by:
I am sending an HTML mail message in my web app. When I copy/paste the HTML of the main body into notepad and name it 1.html it looks perfect. When I receive the email everything looks good...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
4
by: J Huntley Palmer | last post by:
How may I setup a proper HTML mail message with embedded href links using PHP, that follows all the MIME rules? Any examples or links would be appreciated. Thanks!
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
2
by: anu b | last post by:
Now i am sending email to my friend using session variable... but my code is as below private bool SendEmail(string email) { try
3
by: anu b | last post by:
Hii I am using System.net.mail for sending email... i need to send a webpage with its html content as my email body .....for that i used mail.Isbodyhtml as true...but it is not working for me...
27
matheussousuke
by: matheussousuke | last post by:
I'm having trouble with e-mail sending, I mean, the website is suposed to send a confirmation email after sign up, but it gets like text plain instead of HTML May someone help me, please? ...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.