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.M essage")
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_I D")%> & "&id=<%=strID%> & ">Click here to accept</a>" & vbCrLf
strMsgFooter = vbCrLf & "*************"
objCDO.HTMLBody = strMsgHeader & strMsgInfo & strMsgFooter
objCDO.Send
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
Thank in advance.
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.M
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_I
strMsgFooter = vbCrLf & "*************"
objCDO.HTMLBody = strMsgHeader & strMsgInfo & strMsgFooter
objCDO.Send
--------------------------
Thank in advance.
What is id and strID referencing?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.