Remove Email Friend Domain Limit
The email a friend feature has a security feature in it that keeps people from using your domain email to send out messages. This helps to keep spammers from sending messages that look like they are legitimately coming from your domain, which might make it seem like you're spamming. It is strongly recommended that you keep this feature intact. However, if it bothers you, we've added a modification that will help you pull this feature out.
-
Back up the email.php page in the main directory of your site. It is *very* important that you keep a copy of this file, just incase something goes wrong with the modification.
-
Open this email.php page in the main directory, and comment out the domain check feature by changing the lines:
// Check for domain emails $fromemailcheck = explode("@", $_POST[fromemail]); $toemailcheck = explode("@", $_POST[toemail]); if (substr_count($varrow[2], $fromemailcheck[1]) > 0 OR substr_count($varrow[2], $toemailcheck[1]) > 0) die ("Sorry, but messages cannot be sent from this domain. Please try again.
"); else {to:
// Check for domain emails // $fromemailcheck = explode("@", $_POST[fromemail]); // $toemailcheck = explode("@", $_POST[toemail]); // if (substr_count($varrow[2], $fromemailcheck[1]) > 0 OR substr_count($varrow[2], $toemailcheck[1]) > 0) // die ("Sorry, but messages cannot be sent from this domain. Please try again.
"); // else //{(Notice that we simply added slashes in front of each line)
-
In that same page, find the lines:
} } } } else
and change it to:
} // } } } else
Where the second bracket has two forward slashes in front to comment that line out.
This will allow you to use your own domain name when sending out emails.