mail function chokes on .dk ccTLD?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

mail function chokes on .dk ccTLD?

Post 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:
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: mail function chokes on .dk ccTLD?

Post by alex.barylski »

Just curious, but try using Swift mailer.
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: mail function chokes on .dk ccTLD?

Post 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.
Post Reply