PDA

View Full Version : How to link to a url?


yapjiwen
01-28-2004, 06:29 AM
Hi,

Does anyone know how to link the url using ASP ?

Do until rs1.eof
if rs1("status")<>"closed" then
Set objMail1 = Server.CreateObject("CDONTS.NewMail")
objMail1.From = admin_email
objMail1.Subject = "Transfer Request Due in 1 day!"
objMail1.To = rs1("email")
'objMail1.cc = admin_email

mBody = "Items of Transfer Request No." &rs1("trans_id")&" will be overdue in 1 days time." & vbCrLf
mBody = mBody & "Please check in your product as soon as possible." & vbCrLf
mBody = mBody & "http:\\ipmoqd\pass\asp\login.asp" &vbCrLf
mBody = mBody & "-------------------------------- " & vbCrLf
mBody = mBody & "This is a System generated email" & vbCrLf
mBody = mBody & "Please do not reply to this message " & vbCrLf

objMail1.Body = mBody
objMail1.Send
set objMail1 = nothing
Response.write "Email sent to " & rs1("email") & " for Request ID: " & rs1("trans_id")


/end of code

Do i do this?

mBody & %><a href = "http:\\ipmoqd\pass\asp\login.asp"></a><% & vbCrLf ??

It cannot work as it has syntax error.

I wanna link the url. How?Please help.:(

glenngv
01-28-2004, 08:18 AM
mBody = mBody & "http://ipmoqd/pass/asp/login.asp" & vbCrLf

yapjiwen
01-28-2004, 08:59 AM
:eek: Wat? this is incredible...haha...dumb me...thanks alot glen.

to think i wasted half a day to solve this stupid thing...:p