473,395 Members | 2,689 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,395 software developers and data experts.

Sending an email with hyperlink

Could someone please tell me what I'm doing wrong?

When I click on the submit button under button click I have the
following code to send a generated email. I want to capture the
QuesID from that page and place that in a hyperlink to the user so it
will take them to the edit page.
Dim ocdoEmail As New Object
ocdoEmail = Server.CreateObject("CDO.Message")
ocdoEmail.To = Session("GetEmail")
ocdoEmail.From = Session("GetEmail")
ocdoEmail.Subject = "EDCS Question"
ocdoEmail.textBody = "Here is the question that was submitted
CDPAdmin.aspx?quesID =" & Request.QueryString("QuesID")

ocdoEmail.send()

Thanks.

Aug 10 '07 #1
5 2197
you can make your email body HTML. that will allow you to show the link.
and this:

ocdoEmail.textBody = "Here is the question that was submitted
CDPAdmin.aspx?quesID =" & Request.QueryString("QuesID")

should be something like
ocdoEmail.textBody = "<a href='cpadamin.aspx?quesID=&
Request.QueryString('QuesID')'>link here</a>";

i forget the actual syntax but something like that
Mike

"JJ297" <nc***@yahoo.comwrote in message
news:11**********************@x40g2000prg.googlegr oups.com...
Could someone please tell me what I'm doing wrong?

When I click on the submit button under button click I have the
following code to send a generated email. I want to capture the
QuesID from that page and place that in a hyperlink to the user so it
will take them to the edit page.
Dim ocdoEmail As New Object
ocdoEmail = Server.CreateObject("CDO.Message")
ocdoEmail.To = Session("GetEmail")
ocdoEmail.From = Session("GetEmail")
ocdoEmail.Subject = "EDCS Question"
ocdoEmail.textBody = "Here is the question that was submitted
CDPAdmin.aspx?quesID =" & Request.QueryString("QuesID")

ocdoEmail.send()

Thanks.

Aug 10 '07 #2
Why are you using legacy COM when you have the System.Net.Mail namespace
which is managed code, to do this?
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"JJ297" wrote:
Could someone please tell me what I'm doing wrong?

When I click on the submit button under button click I have the
following code to send a generated email. I want to capture the
QuesID from that page and place that in a hyperlink to the user so it
will take them to the edit page.
Dim ocdoEmail As New Object
ocdoEmail = Server.CreateObject("CDO.Message")
ocdoEmail.To = Session("GetEmail")
ocdoEmail.From = Session("GetEmail")
ocdoEmail.Subject = "EDCS Question"
ocdoEmail.textBody = "Here is the question that was submitted
CDPAdmin.aspx?quesID =" & Request.QueryString("QuesID")

ocdoEmail.send()

Thanks.

Aug 10 '07 #3
He still has to have the to, from, subject, body, etc.
So if he uses CDO or System.Net.Mail namespace, he still needs that
information
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yohohhoandabottleofrum.comwrote
in message news:88**********************************@microsof t.com...
Why are you using legacy COM when you have the System.Net.Mail namespace
which is managed code, to do this?
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"JJ297" wrote:
>Could someone please tell me what I'm doing wrong?

When I click on the submit button under button click I have the
following code to send a generated email. I want to capture the
QuesID from that page and place that in a hyperlink to the user so it
will take them to the edit page.
Dim ocdoEmail As New Object
ocdoEmail = Server.CreateObject("CDO.Message")
ocdoEmail.To = Session("GetEmail")
ocdoEmail.From = Session("GetEmail")
ocdoEmail.Subject = "EDCS Question"
ocdoEmail.textBody = "Here is the question that was submitted
CDPAdmin.aspx?quesID =" & Request.QueryString("QuesID")

ocdoEmail.send()

Thanks.


Aug 10 '07 #4
On Aug 10, 11:39 am, "Mike" <M...@community.nospam.comwrote:
He still has to have the to, from, subject, body, etc.
So if he uses CDO or System.Net.Mail namespace, he still needs that
information

"Peter Bromberg [C# MVP]" <pbromb...@yahoo.yohohhoandabottleofrum.comwrote
in messagenews:88**********************************@m icrosoft.com...
Why are you using legacy COM when you have the System.Net.Mail namespace
which is managed code, to do this?
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
"JJ297" wrote:
Could someone please tell me what I'm doing wrong?
When I click on the submit button under button click I have the
following code to send a generated email. I want to capture the
QuesID from that page and place that in a hyperlink to the user so it
will take them to the edit page.
Dim ocdoEmail As New Object
ocdoEmail = Server.CreateObject("CDO.Message")
ocdoEmail.To = Session("GetEmail")
ocdoEmail.From = Session("GetEmail")
ocdoEmail.Subject = "EDCS Question"
ocdoEmail.textBody = "Here is the question that was submitted
CDPAdmin.aspx?quesID =" & Request.QueryString("QuesID")
ocdoEmail.send()
Thanks.- Hide quoted text -

- Show quoted text -
Thanks Mike I tried what you suggested but I'm getting this in the
email? What am I missing?

<a href='cpadamin.aspx?quesID=& Request.QueryString('QuesID')'>link
here</a>

Aug 10 '07 #5
do you have the email body set to HTML?
"JJ297" <nc***@yahoo.comwrote in message
news:11*********************@z24g2000prh.googlegro ups.com...
On Aug 10, 11:39 am, "Mike" <M...@community.nospam.comwrote:
>He still has to have the to, from, subject, body, etc.
So if he uses CDO or System.Net.Mail namespace, he still needs that
information

"Peter Bromberg [C# MVP]" <pbromb...@yahoo.yohohhoandabottleofrum.com>
wrote
in messagenews:88**********************************@m icrosoft.com...
Why are you using legacy COM when you have the System.Net.Mail
namespace
which is managed code, to do this?
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
"JJ297" wrote:
>Could someone please tell me what I'm doing wrong?
>When I click on the submit button under button click I have the
following code to send a generated email. I want to capture the
QuesID from that page and place that in a hyperlink to the user so it
will take them to the edit page.
>Dim ocdoEmail As New Object
ocdoEmail = Server.CreateObject("CDO.Message")
ocdoEmail.To = Session("GetEmail")
ocdoEmail.From = Session("GetEmail")
ocdoEmail.Subject = "EDCS Question"
ocdoEmail.textBody = "Here is the question that was submitted
CDPAdmin.aspx?quesID =" & Request.QueryString("QuesID")
> ocdoEmail.send()
>Thanks.- Hide quoted text -

- Show quoted text -

Thanks Mike I tried what you suggested but I'm getting this in the
email? What am I missing?

<a href='cpadamin.aspx?quesID=& Request.QueryString('QuesID')'>link
here</a>

Aug 10 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nel | last post by:
I am trying to write a content management section for a web site. I have managed so far to use htmlarea to give users a basic, but user friendly interface by which to edit the page content. ...
3
by: Mike Gorgone | last post by:
Hi All, I'm currently sending email with a backend program that is being used to monitor data in a SQL2000 database. Basically I'm trying to figure out how to add a link to the email body...
1
by: Zaidan | last post by:
I am running Excel2000 under WIN98 2nd edition, and I am writing a VBA code (I will consider using javascript if I have to) that does the following, at the user command: 1- Start MS Explorer and...
1
by: Tim | last post by:
I have a field on a form in which the user can type an email address. I would like to be able to double-click the field and it will open a blank email to that address. If you set it as a...
10
by: Ian Kelly | last post by:
Hi All, Does anyone know how to execute a hyperlink programically? I need to create and send an email message, but I need to have the default mail editor loaded and populated with the message...
1
by: jodyblau | last post by:
I have noticed that if you right click on a hyperlink field and edit the hyperlink, you can set it to be an email address and open up Outlook when it is clicked. I have been trying to set this...
2
by: mattcushing | last post by:
I've seen about 1000 links to how to pick up values from a dataview or a gridview. I have a hyperlink that I would like to pick up some values from the page, and send the user to a new page with...
9
by: Ria12 | last post by:
Hi, I am having a gridview which contains a hyperlink template field which is bound to show the email address of the employees.Now when i click the hyperlink feild in the gridview i want to send an...
21
by: DanicaDear | last post by:
I've been trying to figure this out for three weeks. I've been sleeping on it. Not getting answers, just losing sleep. ;-) In a table, I have a field COMPANY_EMAIL. In this field I want to...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.