Skip to main content
Participating Frequently
June 7, 2006
Question

Why Can't I Create An Email Link?

  • June 7, 2006
  • 1 reply
  • 294 views
I'm trying to create an email like out of this:

<cfset emailaddress = 'e' & 'rsTest.EmpID' & '@eamc.org'>

<a href="mailto:emailaddress"><cfoutput>Email</cfoutput></a>

however, i am getting no link returned. can someone help me out?
    This topic has been closed for replies.

    1 reply

    Inspiring
    June 7, 2006
    You should be getting a link returned, but it is just " mailto:emailaddress" , right?

    put the cfoutput tags outside the anchors, because your link is also dynamic, not just the content between the anchors.

    <cfoutput><a href="mailto:#emailaddress#">Email</a></cfoutput>


    Once you get that working, you may want to double check your CFSET tag, because I doubt that it generating the proper content either.