#27107 [NEW]: email validation

From: Date: Sat, 31 Jan 2004 16:01:10 +0000
Subject: #27107 [NEW]: email validation
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-54214@lists.php.net to get a copy of this message
From: davod at powell dot co dot nz Operating system: Red Hat Linux 7.2 PHP version: 5CVS-2004-01-31 (dev) PHP Bug Type: Mail related Bug description: email validation Description: ------------ The mail() command verifies email addresses. It wont forward messages unless the "From: $email" address is correct. It will forward messages ending .com.au, .cc, .co.uk and so on. It will not, however accept email addresses ending .co.nz as being valid. Reproduce code: --------------- <? $Name = $_REQUEST['Name'] ; $Organisation = $_REQUEST['Organisation'] ; $tel = $_REQUEST['tel'] ; $email = $_REQUEST['email'] ; $agree = $_REQUEST['agree'] ; $message = $_REQUEST['message'] ; mail( "david@powell.co.nz", "vehicle.co.nz Sale", "Name: $Name\nOrganisation: $Organisation\nTel: $tel\nEmail:$email\nComments: $message", "From: $email" ); header( "Location: http://www.vehicle.co.nz/thankyou.html" ); ?> Expected result: ---------------- email addresses ending .co.nz should be accepted Actual result: -------------- messages from addresses ending .co.nz are not sent. -- Edit bug report at http://bugs.php.net/?id=27107&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27107&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27107&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27107&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27107&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27107&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27107&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27107&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27107&r=support Expected behavior: http://bugs.php.net/fix.php?id=27107&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27107&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27107&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27107&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27107&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27107&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27107&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27107&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27107&r=float

« previous php.bugs (#54214) next »