Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 8th, 2007, 07:05 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: Bangalore, Karnataka, India.
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default hyperlink in email

i want to give link in email send to user. i am using following code.

strBody = strBody + "Click <a href='http://abc.com'>here</a> to renew your Membership" + "\n";

but it is displaying me all all from click to end of line i want to display click here which will be redirected to URL like http://abc.com


thanks......
__________________
thanks......
  #2 (permalink)  
Old December 8th, 2007, 09:02 AM
Authorized User
 
Join Date: Jan 2007
Location: Islamabad, Punjab, Pakistan.
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aliirfan84
Default

Try it out instead:

strBody = strBody + "&lt;a href='http://abc.com'&gt;here&lt;/&gt;" to renew......

Takecare

Regards,
Ali Irfan
  #3 (permalink)  
Old December 8th, 2007, 09:31 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

If you are going to embed html in your email, you need to set it's format to Html. Alternatively you can just emit the URL without any markup and chance are the mail reader will recognize a url and link it automatically. Of course, then you can't provide explicit text for the link as it will be just part of the plain text of the message.

-Peter
  #4 (permalink)  
Old December 11th, 2007, 04:20 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: Bangalore, Karnataka, India.
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

yes i use above syntax and converted it to HTML Format, its working fine.

thanks......


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink carlos1972 Access VBA 2 November 7th, 2007 10:17 AM
How we can use hyperlink nagham Crystal Reports 0 February 9th, 2007 03:51 AM
hyperlink hyperlink sbhandar Classic ASP Basics 6 August 26th, 2004 02:04 AM
Hyperlink viktor26 Classic ASP Basics 0 October 19th, 2003 09:48 AM
Hyperlink tgopal Javascript 2 July 4th, 2003 10:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.