Email internationalization and i18n localization

Email internationalization and i18n localization

MailSlurp supports email sending and receiving in multiple languages. The SMTP protocol has some limitations around internationalization so see this guide for more information.

Email addresses

Email addresses must be in ASCII format. To encode an email address that is in another character set use Punycode to convert it ot ASCII.

To send an email to a recipient 张伟@example.com convert the local aspect of the email address (before the @ symbol to ASCII characters) xn--cpqy30b@example.com.

Email bodies

You can specify a character set in the send email options for all send methods. Here is an example using the Typescript client.

await inboxController.sendEmailAndConfirm({
    inboxId: senderInbox.id, sendEmailOptions: {
        from: senderInbox.emailAddress,
        replyTo: replyTo.emailAddress,
        to: [toInbox.emailAddress],
        cc: [ccInbox.emailAddress],
        bcc: [bccInbox.emailAddress],
        subject: subject,
        body: body,
        charset: "utf8"
    }
})

Related content

Java email client: send and receive emails and attachments i...

MailSlurp Java SDK for sending and receive email and attachments on the JVM.

Email for testing

Test email accounts for email testing. Alternatives to Mailinator, MailTrap, Mailosaur and more.

Email marketing campaign bulk email testing

Send bulk transactional emails with MailSlurp online or in code using CSharp, Node.js, Java, PHP and more.

Do's and Don'ts for multiple SPF records

Do's and Don'ts for multiple SPF records

Email Over Blockchain

Can emails be sent over blockchain? Well kind of! LedgerMail and other and at the cutting edge of decentralized email.

GraphQL Email API Tutorial

Did you know you can send and receive emails using GraphQL?

Ready to dive in?Start building email applications today.