CodeCanyon

Send to Friend Form

easy to use Tell-A-Friend script

Install this script on your website, you will get a “Send to Friend” button which people can click to email the current page to their friends! Easy to setup.

Features:

  • NEW ! 23rd Nov 2011 – reCAPTCHA to stop spam
  • Add a link to any website and allow visitors to easily “share” the page with their friends via email.
  • User can customise the page title and description.
  • Optional comment that is emailed along with page.
  • You have control over the format of the email that gets sent, style it with your website branding!
  • Normal javascript popup mode, or a nice lightbox popover mode so the user doesn’t leave your website.
  • Automatically reads images from the page, and allows the user to pick an image if they want to share it along with the page.
  • Configuration settings to tweak some of the inner workings.
  • Optional Twitter and Facebook sharing options

How to install:

  1. Unzip the file you downloaded from CodeCanyon
  2. Upload the “send_to_friend/” folder to your website (eg: yourwebsite.com/send_to_friend/)
  3. Add this script tag to your website:
    <script src="/send_to_friend/popup.php?js" language="javascript" type="text/javascript"></script>
    
  4. Create a link on your website like this:
    <a href="/send_to_friend/popup.php" class="sendtofriend" title="Send to Friend">Send Page To Friend</a>
    
  5. Done!

    (replace yourwebsite.com with your actual website above)

How to customise:

  • Open send_to_friend/popup.php in Wordpad or your favourite PHP editor (eg: Dreamweaver Code View)
  • Look at the top for these configuration options:
    $email_address = 'example@example.com'; // enter your email address here. 
    $website_name = 'My Website Name'; // enter your website name here.
    $allow_images = true; // allows the user to select images
    $allow_comment = true; // allow a custom comment from the user.
    $send_bcc = false; // change this to true if you would like to receive a BCC of every email that gets sent.
    $email_subject = 'Your friend sent you a page';
    $restrict_domain = true; // only allow pages from your website to be sent
    $popup_width = 810; // how wide the popup will appear on the page
    $popup_height = 550; // how tall the popup will appear on the page
    
  • Open the file send_to_friend/sendfiles/email.html in Wordpad or your favourite HTML editor (eg: Dreamweaver)
    This is the email that will get sent to visitors friends. You can style this email to match your website.
  • You can open popup.php and change the HTML and CSS code if you want a new layout.
  • You can edit the provided sliced Photoshop document and re-export the graphics if you wish to change any layouts.
  • You can pass these custom parameters to the popup.php file, if you want to integrate this into your website programming:
    • /popup.php?url=somewebsite.com/somepage.html
    • /popup.php?title=Overwrite+Default+Page+Title+Here
    • /popup.php?description=Overwrite+Default+Page+Descriptoin+Here
    • /popup.php?images=/images/a1.jpg|/images/a2.jpg|/images/a3.jpg
    • or all together:
      /popup.php?url=somewebsite.com/somepage.html&title=Overwrite+Default+Page+Title+Here
      &description=Overwrite+Default+Page+Descriptoin+Here
      &images=/images/a1.jpg|/images/a2.jpg|/images/a3.jpg
If you have any questions please feel free to ask.

You must sign in or sign up to purchase this item.

$5Regular Licence

$5

Regular Licence a website (commercial, personal, client), or intranet site project - Details

$25Extended Licence

$25

Extended Licence a website template for sale (including on ThemeForest or ActiveDen) - Details

467 Purchases 103 Comments

Buyer Rating
12345 ( 84 ratings )
dtbaker

dtbaker

  • Has been a member for 2-3 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a File in an Envato Bundle
  • Community Moderator
  • Author had a Free File of the Month
  • Exclusive Author
  • Beta Tester
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Australia
  • Referred between 200 and 499 users
View Portfolio
Created 26 February 10
Compatible Browsers IE6, IE7, IE8, Firefox 2, Firefox 3, Firefox 4, Safari 4, Safari 5, Opera, Chrome
Software Version PHP 4.x, PHP 5.x, PHP 5.0 - 5.2, PHP 5.3
Files Included JavaScript JS, HTML, CSS, PHP, Layered PSD
by
by
by
by
by