Sending CDO mail with hyperlink embedded

Hello,

I have an ASP page that sends a CDO mail.  I want to include a hyperlink in there with a querystring appended to it.  Here is my code.  Can you please take a look at it and verify I have the code correct to send an email with a hyperlink?

------------------------------------------------------------------------------------------------------------------------------
        Set objCDO = Server.CreateObject("CDO.Message")
        objCDO.From = strEmail
        objCDO.To = Request.Form("Email")
        objCDO.Subject = "You Have Been Invited to Join The Rewards Program"

        strMsgHeader = "You have been invited to join the Rewards Program by " & strFName & " " & strLName & " of " & strCoName & ".  If you would like to join please click here <A href=""http://www.website.com/invites/accept.asp?parentid=" & <%=Session("TRP_ParentCO_ID")%> & "&id=<%=strID%> & ">Click here to accept</a>" & vbCrLf
        strMsgFooter = vbCrLf & "*************"

        objCDO.HTMLBody = strMsgHeader & strMsgInfo & strMsgFooter
        objCDO.Send
------------------------------------------------------------------------------------------------------------------------------
Thank in advance.
rudyflyerAsked:
Who is Participating?
 
nurbekConnect With a Mentor Commented:
try like that

strMsgHeader = "You have been invited to join the Rewards Program by " & strFName & " " & strLName & " of " & strCoName & ".  If you would like to join please click here <A href=""http://www.website.com/invites/accept.asp?parentid=" & Session("TRP_ParentCO_ID") & "&id=" & strID & """>Click here to accept</a>" & vbCrLf
0
 
cjinsocal581Commented:
What is id and strID referencing?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.