note 5046 deleted from mail by torben
| From: | torben@php.net | Date: | Thu, 14 Sep 2000 07:18:38 +0000 |
| Subject: | note 5046 deleted from mail by torben | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4895@lists.php.net to get a copy of this message | ||
To Validade Email addresses, you can use the code below:
<?PHP
if (!ereg(".+@.+\..+", $from)) {
echo "<CENTER>Invalid Email address.</CENTER>";
} else {
mail($to, $subject, $message, $from_header);
}
?>