473,473 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Either MailMessage or Outlook removes my protocol-link

Hi,

I'm trying to send this HTML using System.Net.Mail.MailMessage...

From myHtml variable.....

<br>
<a href='URL:myprotocol'>click here</a>
<br>

-------------------------------------------------------------------------

I send it with this code...
Dim mail As New System.Net.Mail.MailMessage
Dim smtp As System.Net.Mail.SmtpClient = New
System.Net.Mail.SmtpClient("myhost")

With mail
.From = New System.Net.Mail.MailAddress(fromEmail, fromName)
.To.Add(New System.Net.Mail.MailAddress(toEmail, toName))
.Subject = subject
.Body = myHtml
.IsBodyHtml = True
.Priority = priority
End With

With smtp
.Credentials = System.Net.CredentialCache.DefaultNetworkCredentia ls
.Send(mail)
End With

-------------------------------------------------------------------------

But when I receives the mail, the link has changed to this...

<br>
<a>click here</a>
<br>

The href part is missing.
I don't know if it's Dotnet or Outlook.

Any idea??

Thanks!

Mojo
May 31 '06 #1
0 795

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

Similar topics

5
by: M. Laymon | last post by:
I just installed Python 2.3.3 under Windows XP professional. After I did, my wife tried to access her email using Outlook Express and got the error messages: Your server has unexpectedly...
1
by: Tim Mavers | last post by:
I am using the MailMessage class and am dynamically building the message body field. I know I am using String and not String builder but I don't want to worry about that now. The problem is after...
0
by: Liz Patton | last post by:
Hi, I have a bit of vb.net code that's sending emails to various public outlook folders from a web server. The problem is that all the messages appear in the folder as a "post" with the...
3
by: Mike P | last post by:
Can the MailMessage class be used to send emails from a machine that has no email account (such as Outlook)? Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just...
1
by: Trond A. S. Andersen | last post by:
Hi all, I'm working on a project in which i need to send mail attachments in the form of Excel documents from a .NET C# application. I've written a class which creates the Excel document using...
1
by: Wade Wegner | last post by:
Hello, Using the MailMessage class (or any other ASP.NET SMTP classes), I would like to programmatically request a read receipt. Is this possible? I have found an article that talked about a...
1
by: Wade Wegner | last post by:
Hello, Using the MailMessage class (or any other ASP.NET SMTP classes), I would like to programmatically request a read receipt. Is this possible? I have found an article that talked about a...
2
by: JohnB | last post by:
hi I am using System.Web.Mail.MailMessage to send email. Is there any way to keep the email to "Sent Items" Folder?? I use Microsoft Outlook as my email tool. Thanks
0
by: Gerald S. | last post by:
MailMessage message = new MailMessage(from, to); message.Body = "Message body"; message.BodyEncoding = System.Text.Encoding.UTF8; message.Subject = "Subject"; message.SubjectEncoding =...
5
by: Vlad | last post by:
We are trying to set MailMessage Content-Type to be text/calendar The following code has been used: string subject = "Calendar test 3"; MailMessage emailMessage = new MailMessage();...
0
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,...
0
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...
0
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,...
0
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...
1
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...
0
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...
0
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,...
1
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...
0
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...

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.