简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM