也许outlook只是将其格式化为Outlook希望它看起来的样子,bc代码对我来说很好,也许你们其中一位大师可以告诉我如何添加一个小车返回(有下一个前雇主出现在下一行)C#生成的Outlook中的新行/回车电子邮件
Outlook.Application oApp = new Outlook.Application();
Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem
(Outlook.OlItemType.olMailItem);
string content = string.Empty;
string content = previousEmployer + Environment.NewLine;
//I have also tried this to no avail
//string content = previousEmployer + "\n";
oMsg.HTMLBody = content;
Outlook.Recipients oRecips = (Outlook.Recipients)oMsg.Recipients;
Outlook.Recipient oRecip = (Outlook.Recipient)oRecips.Add("alphaomegaentry.com");
oRecip.Resolve();
oMsg.Save();
oRecip = null;
oRecips = null;
oMsg = null;
oApp = null;
因为它是一个HTMLBody,你尝试过加入一个
? –