Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged email



Encode mailto links and (plain) email addresses on your site and hide them from spambots. Easy to use, plugin works directly when activated. Features * Protect all emails and mailto links * Check posts, widgets, comments and RSS feeds * Encode...
0 893 posted 13 years ago by freelancephp
0 680 posted 13 years ago by Turek
A simple one page form with attachment that is meant to go straight to the email and not uploaded to the server. Emails an HTML version, a PlainText version and the attachment if there is one.
4 1080 posted 13 years ago by StevenW721
0 590 posted 13 years ago by kendsnyder
2 721 posted 13 years ago by relish
3 863 posted 13 years ago by alyssonweb
This snippet is a PHP function that checks if an email address is valid
2 754 posted 13 years ago by visudex
0 642 posted 13 years ago by tuffo19
A simple example of how to send an email using PHP's build in mail() function.
0 576 posted 13 years ago by jprochazka
Definitivo. Errore bassissimo.
2 786 posted 13 years ago by tuffo19
Stop a spam email form header injection attack - ie stop spammers from hijacking a web form to send junk mail
0 535 posted 13 years ago by flatearthcomms
Requires PHP 5.2 with filter_var()
1 773 posted 13 years ago by Calvista
0 893 posted 13 years ago by jmiller
I used to have the strlen block and the 2 preg if blocks each separately return false throughout, but lately I'm in a single point of exit mindset. I cannot take credit for the regexps - I borrowed them from someone who borrowed them. If the real...
0 666 posted 14 years ago by philsown
1 764 posted 14 years ago by daipratt
0 651 posted 14 years ago by errkk
PHP encrypts your E-mail address and generates the javascript that decrypts it. Most bots and spiders can't execute javascript and that is what makes this work.
3 929 posted 14 years ago by fackz
0 603 posted 14 years ago by Michael01
This code will loop through any posted variables and print the name of the field as well as the value of the field.
0 597 posted 14 years ago by BFTrick
Very easy to use and helps keep browsers from jumbling your email up.
0 619 posted 14 years ago by dmautz1
from http://www.w3schools.com/php/php_mail.asp
0 626 posted 14 years ago by rwczippy
nothing special :)
0 678 posted 14 years ago by adamcoulombe
Allow Visitors to Email Posts to Their Friends
0 521 posted 14 years ago by paulgrenwood
E-mail validation is perhaps the most used validation in web forms, this code will validate email address and also optionally check the MX records of the domain provided in email address to make email validation more robust.
2 773 posted 14 years ago by paulgrenwood
With this snippet, you can encode any email address into HTML entities so that spam bots do not find it.
0 586 posted 14 years ago by paulgrenwood
I use this to activate basic forms for clients. Just make sure your form input names are named appropriately. Any inputs such as phone or fax that are separated into different inputs should have the same name.
1 763 posted 14 years ago by dmautz1