What syntax are you using to add the link currently?
You should be able to echo values, so there must be an issue with how you are adding it. Where do you want the value to come from? Is the readerid in the recordset you are using to send the emails and get the TO address?