How to send multilingual text in mail subject

It took a while for me to understand that you can actually send multilingual characters in Subject of mail. This is easy to integrate if you are hardcoding it within the code, but if you are taking it from the user then you need to make certain changes.

PHP_VALUE mbstring.language    Neutral
PHP_VALUE mbstring.internal_encoding UTF-8
PHP_VALUE mbstring.encoding_translation     On
PHP_VALUE mbstring.http_input auto
PHP_VALUE mbstring.http_output UTF-8
PHP_VALUE mbstring.detect_order    auto
PHP_VALUE mbstring.substitute_character    none
PHP_VALUE default_charset UTF-8

Use mbstring_mail();

Hope this could help somebody.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.