How to Compose E-mail in Right-to-left Language such as Hebrew?
Customer can compose both plain-text and HTML e-mails in right-to-left languages like Arabic and Hebrew without any additional considerations. There are no special settings in MIME for right-to-left rendering, and e-mail reader programs automatically select the direction depending on the actual characters displayed.
With HTML e-mails, you may need to apply RTL attribute to certain HTML tags when building complex right-to-left documents but these are general HTML design concerns rather than e-mail specific issues.
You only need to specify the correct charset (UTF-8 or local language charset), just like the customer would do for any other international e-mail in left-to-right language:
// Set Hebrew's local codepage.
mailer.Message.Charset = "windows-1255";
// Set subject and body.
mailer.Message.Subject = "נושא means Subject in Hebrew";
mailer.Message.BodyPlainText = "טקסט means Text in Hebrew";
' Set Hebrew's local codepage.
mailer.Message.Charset = "windows-1255"
' Set subject and body.
mailer.Message.Subject = "נושא means Subject in Hebrew"
mailer.Message.BodyPlainText = "טקסט means Text in Hebrew"
Send us your feedback: We're always looking for advice to help improve our Knowledge Base! Please let us know if this article was helpful or provide feedback on how we can improve your experience here.