Solved

asp.net syntax send hyperlink in email

Posted on 2010-09-08
4
365 Views
Last Modified: 2012-05-10
message.Body = "New Email " + "<A href=""http://www.mail.com/test.apsx?Name="" + textbox1.textl>Click Me</A>"

I'm sending an email with net.mail.  what is the correct syntax for passing the querystring?
0
Comment
Question by:bergertime
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
Ashok_Paulose earned 500 total points
ID: 33630854
message.Body = "New Email " + "<A href='http://www.mail.com/test.apsx?Name=" + textbox1.text & "'>Click Me</A>"
0
 
LVL 2

Expert Comment

by:junimation
ID: 33631240
make sure that you are using this property as well.
message.IsBodyHtml = true;

and then

message.Body = "New Email " + "Click Me";
0
 
LVL 2

Expert Comment

by:junimation
ID: 33631254
sorry here is the correct way

make sure that you are using this property as well.
message.IsBodyHtml = true;

and then
message.Body = "New Email " + "<A href=\"http://www.mail.com/test.apsx?Name=\"" + "whatever text" + "\">Click Me</A>";

Open in new window

0
 
LVL 2

Author Closing Comment

by:bergertime
ID: 33631391
Ashok, I must confess your code didn't look right.  I didn't think the textbox1 would get picked up inside the single quotes.  Anyways thanks.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question