phpemailphpmailerwebmail

How to send php mail with international recipient


How to send php mail with international recipient?

for example: How to send email To δοκιμή@παράδειγμα.δοκιμή with php mail function or PHPMailer?

Can i convert Local Part + server part of unicode email address to IDNA and then send email with php?

Is there a free service that offers international Email Address?!

Similar Threads:

PHPMailer Character ñ on recipient address

https://github.com/PHPMailer/PHPMailer/issues/251

https://gmail.googleblog.com/2014/08/a-first-step-toward-more-global-email.html

https://en.wikipedia.org/wiki/Email_address#Internationalization


Solution

  • Using Unicode in the local part (the bit before the @) requires support for the SMTPUTF8 SMTP extension, which is supported by gmail, And various other mail servers, including postfix.

    At present, no, you cannot make use of this with PHPMailer (though it is planned), and as far as I’m aware, no other common PHP email libraries support this either.

    You can use IDN for Unicode domains (after the @), because it has a mapping to ASCII, and PHPMailer does support that. However, I’m not sure that IDN can be used for top-level domains yet, so I don’t think the domain example you gave will work.