Hello, I have created a php mail ap. The ap its self works fine however, as soon as an e-mail goes out to an account whose domain has a hyphen in it. I get an error. ( myname@my-site.com ) would produce an error for me. Although my-site.com is a legitimate site.
I've searched the forums and came up dry. Any suggestions?
Odd Mail Problem....
Moderator: General Moderators
The error I am getting is as follows:
myname@my-site.com/www913/web/ifgwo1/dead.letter... Saved message in /www913/web/ifgwo1/dead.letter
the mail code is basic php mail code:
$headers = "From: $from\r\n";
$success = mail($to, $subject, $message, $headers);
myname@my-site.com/www913/web/ifgwo1/dead.letter... Saved message in /www913/web/ifgwo1/dead.letter
the mail code is basic php mail code:
$headers = "From: $from\r\n";
$success = mail($to, $subject, $message, $headers);
Problem Solved...
My problem was not at my server but the php code.
I'll explain...
The error had nothing to do with a hyphen "-"
The problem was the customer I was dealing with gave me the wrong domain to their email.
When you send an email to a person say bill@devnetwork.net the mail goes to devnetwork.net a legitimate domain. at which point the devnetwork.net server sends the mail to bill. If there isn't an account at devnetwork listed as bill then the devnetwork.net server sends a un-deliverable to the sender.
However, If you were to send an email to a fictitious domain such as bill@myfakedomain22222444.com the php code does not know what to do with the e-mail. Hence the error mssg I was getting.
I'm curious to know if this is synonymous the the mail server I am using or a standard. Try it if you want and let me know.
Thanks uberpolak for the help.
-James
I'll explain...
The error had nothing to do with a hyphen "-"
The problem was the customer I was dealing with gave me the wrong domain to their email.
When you send an email to a person say bill@devnetwork.net the mail goes to devnetwork.net a legitimate domain. at which point the devnetwork.net server sends the mail to bill. If there isn't an account at devnetwork listed as bill then the devnetwork.net server sends a un-deliverable to the sender.
However, If you were to send an email to a fictitious domain such as bill@myfakedomain22222444.com the php code does not know what to do with the e-mail. Hence the error mssg I was getting.
I'm curious to know if this is synonymous the the mail server I am using or a standard. Try it if you want and let me know.
Thanks uberpolak for the help.
-James