[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 546
  • Last Modified:

send a URL page to a friend

Hi I want some one to tell How do i create the code for send URL page to a friend in Cold Fusion
0
asamuel
Asked:
asamuel
  • 2
2 Solutions
 
mrichmonCommented:
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=http://www.site.com/pagename.html">Send page to a friend</a>

This will bring up a email window in the user's email program
0
 
R_HosCommented:
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.  
0
 
mrichmonCommented:
or cgi.script_name - depends on what exactly you are trying to send - but you didn't really give a lot of information.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now