skip to Main Content

Visual Studio Code – Office.context.mailbox.item.subject.getAsync is not a function

Requirement: Get email subject from outlook inbox by outlook add-in API. Environment: Outlook add-in (sideload) "Mailbox" MinVersion="1.1" Visual studio code Code: async function ReadEmailSubject() { document.getElementById("email-subject").innerText = ""; Office.context.mailbox.item.subject.getAsync(function (result) { var emailSubjectDiv = document.getElementById("email-subject"); if (result.status === Office.AsyncResultStatus.Succeeded) {…

VIEW QUESTION

I need that when I send an email through Outlook using code written in C# it is sent with the email signature – Artificial Intelligence

private void btnEnviar_Click(object sender, EventArgs e) { try { // Crear una instancia de Outlook Outlook.Application outlookApp = new Outlook.Application(); // Crear un objeto de correo electrónico Outlook.MailItem mailItem = (Outlook.MailItem)outlookApp.CreateItem(Outlook.OlItemType.olMailItem); // Obtener la firma del correo electrónico string signature…

VIEW QUESTION
Back To Top
Search