Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Often I am asked to create send to a friend forms for websites where a user can enter a few of their friends email addresses to which a URL is forwarded via email.

My question is now that we have so many like buttons for services such as Facebook and Twitter are these forms even necessary any more? Do people even still fill them in in your experience?

I ask as I generally tend to avoid creating them due to their propensity to get hammered by spammers attempting to re-purpose them for nefarious ends.

Also are there any tips to help mitigate the risk when using PHP? For example could tracking and rate limiting IP addresses be a good approach? Any other ideas in this direction? I am totally against any form of captcha and hate websites that use them.

Currently I am using a combination of PHPMailer and SwiftMailer across various projects for the actual sending of the mail.

share|improve this question

migrated from stackoverflow.com May 13 '11 at 11:07

This question came from our site for professional and enthusiast programmers.

They've been nasty threats of spammey address harvesting (i.e. I don't want my friends to tell ACME to spam me using ACME's "tell a friend" form) since the 90s. – Quentin May 13 '11 at 11:01
@DavidDorward I am posing the question more from a programmers point of view and not from a end user point of view, but yes I agree and never use them myself on websites. – Treffynnon May 13 '11 at 11:03
up vote 3 down vote accepted

It really depends on the needs you have, target group specially. Not everbody has Twitter or Facebook as a Medium, good old Email works fine and is not like overspamed, like Facebook and Twitter. Son in certain cases it makes absolutely sense!

We still implement it all the time, except for hippie flippie social sites / for youth specially.

To be Honest, who takes it 100% serious, what comes over Twitter and Facebook? There is sooo much offtopic and its completely unpersonal.

When you recommend something directly, it is marked "important", at least its y o u r favorite.

And for spamming, search for honeypot or captcha implementations, they are easy to implement, there are several solutions for mailforms, that ensure, that a human is filling in the form.

This helps?

share|improve this answer
Should have mentioned in my question (now updated) that I avoid captcha as much as possible. – Treffynnon May 13 '11 at 11:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.