|
|
|
|
|
<?php
function send_mail($to_address, $from_address, $subject, $message) {
$path_to_sendmail = "/usr/lib/sendmail";
$fp = popen( "$path_to_sendmail -t", "w");
$num = fputs($fp, "To: $to_address\n");
$num += fputs($fp, "From: $from_address\n");
$num += fputs($fp, "Subject: $subject\n\n");
$num += fputs($fp, "$message");
pclose($fp);
if ($num > 0) {
return 1;
} else {
return 0;
}
}
?>
|
|
| Credit Card Identification and Validation Class - The credit_card class provides methods for cleaning, validating and identifying the type of credit card numbers. Categories : PHP, PHP Classes, Credit Cards, Ecommerce, Algorithms | | | email validator check checker email e-mail email address Categories : PHP, Email, Regexps | | | Broadcast HTML Email Categories : PHP, Email, MySQL, Databases | | | EAvalidator - This class can be used to validate an e-mail address by checking its domain. Categories : PHP, PHP Classes, Email, Regexps | | | quick sort for associative arrays Categories : Algorithms, Arrays, PHP | | | PHP3 PHP POP3 SMTP MAIL Categories : PHP, Email, HTML and PHP | | | Protect your email links from being spidered by spam email robots! Categories : PHP, Security, Mail, Email | | | Class for sending mail with MIME attachments in multipart format using external sendmail, mimencode and zip Categories : Email, Network, PHP, PHP Classes | | | send_mail function to defeat Header Injection Hacking/Spamming Categories : PHP, Email, Form Processing, Security | | | Error mailing logging facility Categories : PHP, Errors and Logging, Email | | | Simple Email address validation Categories : Email, PHP, Strings | | | Encoding data using PGP via PHP's proc_* functions Categories : Cryptography, Security, Email, PHP, PGP | | | Boolean Keyword Interpreter Categories : PHP, Algorithms, Search Engines | | | A class for sending email; it has support for To:, Cc:, Bcc: and Reply-To:
headers. It requires that you have sendmail installed. Categories : Email, PHP Classes, PHP | | | Dollar Serial Number Validator Categories : PHP, Security, Algorithms | |
| |
| |
|