Hi Laura,
You can set the body of the e-mail to be HTML rather than text which will enable you to embed a link.
The first thing to do is to make a slight change to your code to replace your CDONTS mail object with a CDOSYS one. CDONTS is not used any more but it is very easy to make the change. Here's an example showing you how to use an html email body with CDOSYS:
- sBody = ""
-
sBody = sBody & "<p>Thank you for signing up on our email list!</p>"
-
sBody = sBody & "<p>We would like to give you a valuable free report which has proven to offer invaluable advice for making decisions on your future investments and benefits.</p>"
-
sBody = sBody & "<p>Click here to get started!</p>"
-
sBody = sBody & "<p>Assignment for Success</p>"
-
-
'Here's the embedded link
-
sBody = sBody & "<a href='www.assignmentforsuccess.com'>Click here to get started</a>"
-
-
set oMail = Server.CreateObject("CDO.Message")
-
oMail.To = sTo
-
oMail.From = sFrom
-
oMail.Subject = sSubject
-
oMail.HTMLBody = sBody
-
oMail.Send
Let me know how you get on,
Dr B