send a URL page to a friend

Posted on 2005-04-11
Last Modified: 2013-12-24
Hi I want some one to tell How do i create the code for send URL page to a friend in Cold Fusion
Question by:asamuel
    LVL 35

    Accepted Solution

    2 ways)

    1) Create an input to accept email address and a submit button.  WHen clicked use cfmail to send email to the friend include the URL

    2) <a href="mailto:?subject=web page from a friend&body=">Send page to a friend</a>

    This will bring up a email window in the user's email program
    LVL 5

    Assisted Solution

    mrichmon's solution is the right one, but you can automate the process a bit more (so if you are using this on a bunch of pages your not copying and pasting all day)  by using cgi.cf_template_path and stripping out  the directory structure that isnt needed.  
    LVL 35

    Expert Comment

    or cgi.script_name - depends on what exactly you are trying to send - but you didn't really give a lot of information.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    A web service ( is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
    Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now