Encoding email subject for foreign languages |
[eluser]sehummel[/eluser]
I have an email function that is set up to send out an email when a user wants to contact us. I have figured out how to send the body of the email in the foreign language by using HTML, but I understand the subject line can only handle ASCII characters. What workaround is there so I can send the subject line in say Korean or Chinese? Is there a limitation in CI that's going to force me to use some regular PHP to do this?
[eluser]Nick_MyShuitings[/eluser]
example code pls? or else there is not much to do to help troubleshoot this.
[eluser]InsiteFX[/eluser]
Try reading this: RFC 2047 - MIME (Multipurpose Internet Mail Extensions) InsiteFX
[eluser]sehummel[/eluser]
I found this example online, but it doesn't work. Code: $charset = "GB2312"; Can you help me debug this?
[eluser]sehummel[/eluser]
I found the answer. In the script, define $encoded_subject as Code: mb_encode_mimeheader($subject, 'UTF-8);
|
Welcome Guest, Not a member yet? Register Sign In |