|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-31 11:33 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 20:00:02 2025 UTC |
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.