CodeCanyon

Send to Friend Form

Change the from email address to the person sending the mail

Line 184 of phpcode.php change this:

$headers = 'From: '.($website_name ? $website_name : $parts['host']).' <'.$email_address.'>' . "\r\n";

to this:

$headers = 'From: '.preg_replace('#\r|\n#','',$_REQUEST['your_name']).' <'.preg_replace('#\r|\n#','',$_REQUEST['your_email']).'>' . "\r\n";

note: this will most likely cause all “send to friend” emails to be received as spam. because you are sending an email from another persons email address which isn’t linked to your hosting account.

Lightbox isn’t working (it takes me to a new page)

The easiest way to fix your lightbox issue is to add this extra jquery tag just before the send to friend tag:

<script src="send_to_friend/sendfiles/gb/jquery-latest.js" type="text/javascript"></script>

So your page should look something like this:

<script type="text/javascript" src="send_to_friend/sendfiles/gb/jquery-latest.js"></script> <script language="javascript" src="send_to_friend/popup.php?js" type="text/javascript"></script>

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