So I have a situation where an app calls Email::Sender::Transport::SMTP, and sends a helo with an IDN (a domain with a UTF-8 character in it). This does not work as Net::Cmd chokes on wide characters.
I could change my code to send a helo as punycode. but then realised if I did this then everything that uses Email::Sender::Transport::SMTP would need to do the same thing, which seems sub optimal.
This pull request automatically will convert any value in the helo field to be the punycode version of the domain (and for an ascii only domain, that is no change at all).
So I have a situation where an app calls Email::Sender::Transport::SMTP, and sends a helo with an IDN (a domain with a UTF-8 character in it). This does not work as Net::Cmd chokes on wide characters.
I could change my code to send a helo as punycode. but then realised if I did this then everything that uses Email::Sender::Transport::SMTP would need to do the same thing, which seems sub optimal.
This pull request automatically will convert any value in the helo field to be the punycode version of the domain (and for an ascii only domain, that is no change at all).