Jump to content
Sign in to follow this  
rik

Email with the host part with accented vowels

Recommended Posts

Unfortunately, the it-nic got the "great" idea to start selling domains with accented characters to improve their revenues. :facepalm:Those domains may contains not only italian accented vowels, but even many others of other nations.So, even italian site with italian target have now to handle email addresses such as info@Iñtërnâtiônàlizætiøn.it. Trying to manage this problem using php, the only way I found is using the punycode translation, to that info@Iñtërnâtiônàlizætiøn.it becomes info@xn--itrntinliztin-vdb0a5exd8ewcye.it I tested in the FROM field and it works (I don't have an email address with special chars to use for the tests). Anyway, this brings us to another problem: imagine this simple/frequent scenario1) Contact Web form. A guy inserts his data and sends it.2) The company receives the email and replies (if they don't know of punycode, will be quite scaring!).3) The guy of point 1, who inserted his email in plain utf-8, receives the reply at his address but with this strange, different email address, which is not what he typed in the web form, looking like phishing or spam. I also tried a different approch: mb_encode_mimeheader(): it seems ok visually in the email clients, but trying to reply, the address get into the encoded way... something like=?UTF-8?B?ScOxdMOrcm7DonRpw7Ruw6BsaXrDpnRpw7huQHJpa3NvZnQuaXQ=?=IMPRACTICAL, working or not! Does anyone know a better way to send emails with the host part with accented vowels?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×