473,320 Members | 1,887 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.

Embedding hyperlink in MailBody of MailMessage Object: Does not work

1
I am creating mails in code for a packaging application.

I am using htm templates and then just replace what is needed.

I have code to create true href <a href='#PackageURL'>#PackageDescriptionURL</a>.

This works perfectly but when I receive the mail it shows it as text.

For example:
<a href="http://hyperlinkvaluegoeshere?code=291872&vrfyCode=14936& noredirect=1">sdfgsdgf</a>

I have set the IsBodyHtml = true e.g. mailObj.IsBodyHtml = true;.

I am using htmlEditorExtender as the TextBox where I create my MailBody (this enables some HTML functionality).

Thanks in advance.
Nov 20 '12 #1
2 1692
Rabbit
12,516 Expert Mod 8TB
It would help to see the code.
Nov 20 '12 #2
Frinavale
9,735 Expert Mod 8TB
I'm not clear about what the problem but I think you will be interested in checking out the HttpServerUtility.HtmlEncode Method and it's counter part the HttpUtility.HtmlDecode Method.


-Frinny
Nov 21 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Roberta McGervey | last post by:
I have the following code: <Script LANGUAGE=vbscript RUNAT=Server> for i =0 to document.form1.elements.count-1 response.write "test" next
10
by: Rohan Hattangdi | last post by:
I get the following error message on a line that attempts to create an instance of an ADODB connection object. "Object does not support this property or method: 'Server.CreateObject' ". Now...
4
by: Mark Rae | last post by:
Hi, Can anyone please tell me if it's possible to pass a System.Web.Mail.MailMessage object to a ASP.NET Web Service? Maybe using XML Serialization / Deserialization? I've been asked to...
7
by: Clint Herron | last post by:
Howdy! I posted this question on CSharpCorner.com, but then realized I should probably post it on a more active newsgroup. This will be my only cross-post. I'm creating a game engine, and...
0
by: ATS | last post by:
PRB: Can not get UserControl/HTML/OBJECT to work on XP/SP2/IIS/IE6 Please help, I can not get my UserControl to work from a simple OBJECT tag in a simple HTML web page on Windows XP with SP2...
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...
0
by: Carlos | last post by:
Hmm it should be fairly simple i guess, but im stuck big time. Cant seem to find iDataSource anywhere. What im trying to do is to read a textfile (mail.mai) into an CDO Mailmessage object. So...
4
by: Ant | last post by:
Hi, I'm using the MailMessage object to send an email programmatically via a console application. It needs to have lines breaks. For example: string s = "This is the first line + "\n\r" + "and...
0
by: Mo | last post by:
Hi, I am using VS2005 to create a dataset is app_code directory. when I add a table adapter and follow thw wizard selecting "Create Stored Procedure" I am getting an error saying: "the type...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
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...
0
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.