Bug #14981 Updated: mail() function won't send mail to a domain containing '-' hyphens

From: Date: Fri, 11 Jan 2002 12:08:05 +0000
Subject: Bug #14981 Updated: mail() function won't send mail to a domain containing '-' hyphens
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76627@lists.php.net to get a copy of this message
ID: 14981 Comment by: andrew@digitalhands.co.uk Reported By: andrew@digitalhands.co.uk Status: Open Bug Type: Mail related Operating System: Unix PHP Version: 4.1.0 New Comment: I'm not running it, my ISP is. Anyway, excuse the error, it's on unix. Previous Comments: ------------------------------------------------------------------------ [2002-01-11 05:51:44] hholzgra@php.net there finaly is an Apache OS now? great ;) no, serious, what kind of operating system are you runnig this on, windows or *nix? ------------------------------------------------------------------------ [2002-01-10 17:59:18] andrew@digitalhands.co.uk The following example script: $r = "info@the-total-solution.com"; $s = "Message submitted at website"; $m = "From: " . $name . ", email: " . $email . "\n\n" . $message; $h = "From: " . $email . "\r\n"; mail ($r, $s, $m, $h); echo "<script language=\"javascript\">window.alert (\"Thankyou, your message have been sent!\")</script>"; ought to send mail to the specified address, but does not. Or, at least, mail does not arrive. It works with all email addresses we have tried except those on this domain (ie. 'the-total-solution.com', which seems to suggest a problem with PHP, possibly relating to the fact that the domain contains hyphens? Emails from other sources are correctly reaching this address and others in the domain. Escaping by using the address "info@the\-total\-solution.com" doesn't solve the problem either. Having raised this problem with other developers, who also tested it, we can only conclude that the problem is in PHP. I am not running PHP myself, my webserver is, so I can't give any information about PHP modules / backtrace. Andrew Staffell ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14981&edit=1

« previous php.dev (#76627) next »