|
|
|
-- 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 | |
|
|
|