bergertime
asked on
asp.net syntax send hyperlink in email
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?
I'm sending an email with net.mail. what is the correct syntax for passing the querystring?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry here is the correct way
make sure that you are using this property as well.
message.IsBodyHtml = true;
and then
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>";
ASKER
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.
message.IsBodyHtml = true;
and then
message.Body = "New Email " + "Click Me";