|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-10 17:59 UTC] andrew at digitalhands dot co dot 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
it doesn't have to touch the '-' and it wont none of the characters allowed in the domain part of an email address needs quoting for the windows implementation of mail() further investigation could be necessary but the unix mail() implementation is so straight forward that i'm really sure it is not PHPs fault here if every domain with a '-' in it fails -> blame your ISPs mail setup if only certain domains fail -> maybe the mail server on that domain doesn't play well with the one your ISP uses investigating the DNS MX entries for the-total-solution.com you can see that this domain has only *one* mail server, no fallback system, and the mail server identifies itself as "220 MAIL.the-total-solution.com NTMail" not to unlikely that you have delivery problems with that domain :(