Link to home
Start Free TrialLog in
Avatar of rudyflyer
rudyflyer

asked on

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.
Avatar of cjinsocal581
cjinsocal581
Flag of United States of America image

What is id and strID referencing?
ASKER CERTIFIED SOLUTION
Avatar of nurbek
nurbek

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial