views:

30

answers:

1

Hi, I'm sending mails in c# using SmtpClient. i'm sending the mails as plain text:

message.IsBodyHtml =False;

how can I send them as RTL? with HTML mails it's very easy-just tag them as RTL.

Sample code:

    public void SendEmail(bool isJapanese)
    {
        try
        {
            MailAddress from = new MailAddress(FromEmail,FromDisplay);
            MailAddress to = new MailAddress(ToEmail, ToDisplay);
            MailMessage message = new MailMessage( from, to);
                message.Subject = Subject;
            if (!IsHTML)
                Body = Body.Replace("<br/>", "\r\n").Replace("<br/>", "\r").Replace("<br/>", "\n");
            message.Body =Body;

            message.BodyEncoding = Encoding.UTF8;
                message.SubjectEncoding = Encoding.UTF8;
            message.IsBodyHtml = IsHTML;
            smtpClient.Send(message);
        }
        catch (Exception ex)
        {
            ex.HelpLink += "class MailSender, fn SendMail(); ";
            Log(ex);
        }
    }
A: 

Hi, there is no way to indeciate alignment of plain text mails. by the way- Gmail is autodetcting RTL languages but this is the only provider i see that doe's that.