Outlook에서 새 메일을 작성할 때 제목을 새로 설정할 수 있지만 텍스트를 앞에 추가하려고합니다. 그래서 먼저 주제를 얻고 설정해야합니다.Outlook에서 편지 쓰기 항목의 제목에 액세스하는 방법
Outlook.Application application = Globals.ThisAddIn.Application;
Outlook.Inspector inspector = application.ActiveInspector();
Outlook.MailItem myMailItem = (Outlook.MailItem)inspector.CurrentItem;
if (myMailItem != null && !string.IsNullOrEmpty(myMailItem.Subject))
{
myMailItem.Subject = "Following up on your order";
}
이 코드는 응답에서 작동하지만 새 메시지에는 적용되지 않습니다.이 경우 myMailItem은 null입니다.