Page 1 of 1

mail function chokes on .dk ccTLD?

Posted: Tue Jul 14, 2009 6:34 pm
by flying_circus
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:

Code: Select all

$headers = "From: No Reply<noreply@mydomain.dk>\r\n";
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:

Code: Select all

$headers = "From: No Reply<noreply@mydomain.dk.com>\r\n";
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. :banghead:

Re: mail function chokes on .dk ccTLD?

Posted: Wed Jul 15, 2009 7:52 am
by alex.barylski
Just curious, but try using Swift mailer.

Re: mail function chokes on .dk ccTLD?

Posted: Wed Jul 15, 2009 4:40 pm
by flying_circus
I havent tried Swift Mailer.

What I am using it for is so basic that I'm trying to stay within the realm of built-in functions. I just feel like I'm missing something simple, somewhere.