# Email-this-page script

**URL:** <https://forum.kirupa.com/t/email-this-page-script/276810>\
**Category:** programming\
**Created:** [December 3, 2008, 8:55pm UTC](https://forum.kirupa.com/t/email-this-page-script/276810 "2008-12-03T20:55:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![njoay](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@njoay](https://forum.kirupa.com/u/njoay)\
**Post date:** [December 3, 2008, 8:55pm UTC](https://forum.kirupa.com/t/email-this-page-script/276810/1 "2008-12-03T20:55:44Z")

</div>

Hi all,

I’m trying to set up a “Email this page” link. I’ve searched but haven’t been able to find anything good. Either they’re all old school or not what I’m looking for.

Crate & Barrel’s site [http://www.crateandbarrel.com](http://www.crateandbarrel.com/) is a great example of what I would like to accomplish. I’m creating an HTML website and would like to implement this feature relatively easily. Would I need PHP or another script? PHP doesn’t work with our servers so I would need an alternative to PHP.

I was advised to use cfmail and so far I have this in my html page which doesn’t work at all:

\<li class=“email”\>\<a href="#"\>Email this story\</a\>\</li\>

```
            &lt;cfif IsDefined("form.email") AND IsValid("email", form.email)&gt;

```

\<!— send the email —\>  
\<cfmail to="#form.email#" [from="info@page.com](mailto:from=%22info@page.com)" subject=“A subject”\>  
[www.page.com](http://www.page.com)  
\</cfmail\>  
\</cfif\>

Any help or at least a starting point would be very helpful!

Thanks so much!
