mail function chokes on .dk ccTLD?
Posted: Tue Jul 14, 2009 6:34 pm
I'm struggling with an interesting problem.
I'm using a mail function and trying to set the "From: " header to a .dk domain name.
Example:
The above does not seem to accept the "From: " header. Once the email hits my inbox, it shows the sender as 'webhost_username@webhost.com'... not exactly desireable.
Now, if I use this little diddy here:
Everything works as expected, except the domain address of "mydomain.dk.com" is not correct. There should be no trailing .com.
Is there a parameter I can set to remedy this? It's really pretty strange.
I'm using a mail function and trying to set the "From: " header to a .dk domain name.
Example:
Code: Select all
$headers = "From: No Reply<noreply@mydomain.dk>\r\n";Now, if I use this little diddy here:
Code: Select all
$headers = "From: No Reply<noreply@mydomain.dk.com>\r\n";Is there a parameter I can set to remedy this? It's really pretty strange.