I have always wondered about this. Most tutorials online or books teach you about the mail functiin and one can make a nice little script to send emails. how do you keep people from just hitting refreash and email bombing you?
Put a captcha image on it, record the ip and store it then everytime the mail function runs, check the ip to see if its the same, if it is, then stop the email.