WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Protect your email links from being spidered by spam email robots!
Categories : PHP, Security, Mail, Email Click here to Update Your Picture
Ulrich Kapp
Date : Mar 12th 2002
Grade : 3 of 5 (graded 2 times)
Viewed : 5959
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Ulrich Kapp
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

-- START file otliam.php --
<?
$to = $HTTP_GET_VARS["to"];



/*
Configure the variables and case options
*/
$domain = "mycompany.com";

switch ($to) {
        case "info":
                $addr_info = "MyCompany, Inc.";
                break;
        case "webmaster":
                $addr_info = "To the Webmaster";
                break;
        case "name":
                $addr_info = "Surname I. Name";
                break;
/*
and add as many case options as you want here.
*/
        default:
                $addr_info = "mailto.php configuration error";
                $to = "webmaster";
}



/* send the mail header */
header ("Location: mailto:$addr_info <$to@$domain>");
?>
-- END file otliam.php --
Save this as 'otliam.php' or anything else.


In your page, instead of using

<a href="mailto:name@mycompany.com">Send a email to: Surname I. Name</a>

which can be spidered by any email spam robot include the following link to your
page (example):

<a href="otliam.php?to=name">Send a email to: Surname I. Name</a>



Encoding data using PGP via PHP's proc_* functions
Categories : Cryptography, Security, Email, PHP, PGP
A damaged image generator (class) for validating text. CAPTCHA - Completely Automated Public Turing test to tell Computers and Humans Apart
Categories : PHP, PHP Classes, Security, GD image library, Security
Protect your mailto: email addresses from bots - pure PHP
Categories : PHP, Email, Security
send_mail function to defeat Header Injection Hacking/Spamming
Categories : PHP, Email, Form Processing, Security
send php mail with form data and attachment.
Categories : PHP, Email, Mail, Form Processing
Using this script anyone can easily get a form result to his/her mailbox. You can use this script for any form 2 mail purpose.
Categories : PHP, Mail, Form Processing
Email a user with out exposing email address
Categories : PHP, Databases, MySQL, Email
Password Creator: This PHP code exmaple shows how to use bitwise operations on a single variable and using it as a flagged variable. The class generates passwords of a given length using specified characters and the flags.
Categories : PHP, PHP Classes, Algorithms, Security
Simple Password example
Categories : PHP, Authentication, Security, HTTP
PHP Function to Encrypt/Decrypt a string without a known key. The string itself has his own different key for every character.
Categories : PHP, Algorithms, Security, Authentication, Encryption
Class for sending mail with MIME attachments in multipart format using external sendmail, mimencode and zip
Categories : Email, Network, PHP, PHP Classes
Password reminder
Categories : PHP, PHP Classes, Databases, MySQL, Mail
Broadcast HTML Email
Categories : PHP, Email, MySQL, Databases
A PHP function to encrypt and decrypt a number or string or a combination of the two.
Categories : PHP, Encryption, Security
A web-based php3 IMAP email client supporting address books, attachements (downloading and sending), LDAP searching, and much much more.
Categories : Email, PHP, LDAP