473,387 Members | 1,453 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,387 software developers and data experts.

URL from an "Email a Page" is an inactive hyperlink

My "Email a Webpage" form works find except when the end user receives the email, the URL is text only and not a hyperlink.

The "Email a Page" form calls the URL from the previous page using:
<input type="hidden" name="URL" value="<%= Request.ServerVariables("HTTP_REFERER")%>">

The action page uses CDOsys to send the email: My abridged code:
Expand|Select|Wrap|Line Numbers
  1. <%@LANGUAGE="VBSCRIPT"%>
  2. <% 
  3. strFrom = Request.Form("FromEmail")
  4. strFromName = Request.Form("FromName")
  5.  
  6. Set cdoMail = Server.CreateObject("CDO.Message") 
  7. Set cdoCON = Server.CreateObject ("CDO.Configuration") 
  8. Set cdoMail.Configuration = cdoCON 
  9.  
  10. cdoMail.From = strFrom
  11. cdoMail.Subject = "Article Feedback"
  12. cdoMail.HTMLBody = vbCRLF & "<strong>Feedback has been submitted on the article below:</strong>" & "<br />"_ 
  13.   & Trim(Request.Form("URL"))
  14.  
  15.   With cdoMail 
  16.          Set cdoMail.Configuration = cdoCON 
  17.         .From = Request.Form("FromEmail")
  18.         . Sender = "ArticleFeedback@myWebsite.com"
  19.         .To = "myEmail@myWebsite.com"
  20.         .Subject ="Article Feedback"
  21.         '.HTMLBody = Body
  22.         'CDONTSMail.BodyFormat=0
  23.         'CDONTSMail.MailFormat=0
  24.         .Send 
  25.     End With 
  26.  
  27. Set cdoMail = Nothing 
  28. Set cdoCON = Nothing 
  29. %>  
What am I missing from my cdoMail.HTMLBody?

Thank you.
Nov 18 '08 #1
3 2425
jhardman
3,406 Expert 2GB
You are missing the code for the hyperlink.
Expand|Select|Wrap|Line Numbers
  1. dim q
  2. q = chr(34)
  3. cdoMail.HTMLBody = vbCRLF & "<strong>Feedback has been submitted on the article below:</strong>" & "<br />"_ 
  4.   & "<a href=" & q & Trim(Request.Form("URL")) & q & ">" & Trim(Request.Form("URL")) & "</a>
Let me know if this helps.

Jared
Nov 20 '08 #2
DrBunchman
979 Expert 512MB
Hi MrCorbeaux,

Further to Jared's answer to your question I just wanted to say welcome to Bytes! Please take the time to read the Posting Guidelines if you have not done so already.

Please don't forget to wrap your code in CODE tags - it makes your posts much easier to read.

Thanks,

Dr B
Nov 21 '08 #3
jhardman,
I worked with the code you provided and it works great. Thanks much.
Nov 25 '08 #4

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

Similar topics

2
by: Mindful_Spirit | last post by:
I'm trying to set up a basic email feed back form like this, and was wondering about some basic configuration settings. I have used code from this website. I have it working just fine. I'm...
3
by: nan | last post by:
Hi All, I am trying to connect the Database which is installed in AS400 using DB2 Client Version 8 in Windows box. First i created the Catalog, then when i selected the connection type...
4
by: Greg | last post by:
How do I programmatically load an .aspx page into the contentplaceholder? Similar to what would happen in the "navigateURL" property when clicking on a hyperlink on the master page. . . ASP .NET...
4
by: soren625 | last post by:
What I am trying to do is grab a little snippet of data from a remote page based on user input in a form. Take a look at this page: http://www.qrz.com/kb2gsd What I want to do is: when a user...
1
Coldfire
by: Coldfire | last post by:
Hello I need a HTML script for Emailing the link, with description, of my site to any email address for-example in the case of "Share this Page with Friends". plz help
3
simpleton
by: simpleton | last post by:
Hey all, I'm new to this board. I'm trying to send email via a "contact us" form .asp page. I've setup SMTP Virtual Server on my local XP IIS 5.1 machine. I told it to relay with 127.0.0.1 ...
0
by: AngelaMDick | last post by:
AngelaMD...@gmail.com View profile More options 12 Nov, 14:43 Newsgroups: microsoft.public.dotnet.csharp.general From: AngelaMD...@gmail.com Date: Mon, 12 Nov 2007 06:43:21 -0800 Local: Mon...
4
by: lander | last post by:
I've read the page life cycle thing in msdn, still, i'm getting a bit confused of thinking how all the things are going under the hood... I know that when page loading, that the controls'...
1
by: sj7272 | last post by:
Hi, I am building email marketing framework, my email templates go out to clients and I wish to include a "send to a friend" or "forward to a friend" link in the outbound email. I want to track...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.