0
我發送郵件是這樣的:如何發送郵件,使用outlook - 消息中的文字權限?
string sampleDisplayName = "Me";
Microsoft.Office.Interop.Outlook.Application sampleApp = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.MailItem sampleMessage = (Microsoft.Office.Interop.Outlook.MailItem)sampleApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);
sampleMessage.To = "[email protected]";
sampleMessage.Subject = "My subject";
LosMSG = "My message here";
LosMSG += "\n------------";
LosMSG += "\nand here";
sampleMessage.BodyFormat = Microsoft.Office.Interop.Outlook.OlBodyFormat.olFormatRichText;
sampleMessage.Body = LosMSG;
sampleMessage.BCC = ToHoSend;
int samplePosition = (int)sampleMessage.Body.Length + 1;
int sampleType = (int)Microsoft.Office.Interop.Outlook.OlAttachmentType.olByValue;
sampleMessage.Display(true);
sampleMessage = null;
sampleApp = null;
但該消息是左到右
我怎麼做從右到左?
感謝的提前
感謝對幫助,但在哪裏包括CSS或在哪裏計劃? – Gold 2010-11-10 14:38:11
創建包含樣式信息的HTML(最好使用HTML郵件的內聯樣式)並將其分配給MailItem的HTMLBody屬性。 – stuartd 2010-11-11 17:58:17