outlook

using other mail account by sending mail from Excel to outlook [duplicate]

巧了我就是萌 提交于 2021-01-29 08:05:41
问题 This question already has answers here : choose account in outlook when send mail via excel vba [duplicate] (1 answer) MS Access / Outlook 2010 - how to choose which account to send email from? (2 answers) VBA Send Email from Second Outlook Email Address (1 answer) How to send mail from a specific account? (1 answer) Closed 4 months ago . I have this macro running in VBA. it is to send a mail out of Excel using Outlook. Now i have two accounts on outlook, let's say Test1@outlook.com and Test2

MailItem.Reply Event not working as expected

白昼怎懂夜的黑 提交于 2021-01-29 07:54:55
问题 I want to write a script that changes the format of the mail, when I am replying to a text- or rtf-mail, using Outlook 2013. To have something to begin with. I used the reply event described in the MS dev centre. Unfortunately the example does not work as I expect it to. For testing, I put in a simple message box that should pop up after clicking the reply button. I never see that message box. What did I do wrong? Public WithEvents myItem As MailItem Sub Initialize_Handler() Set myItem =

Saving emails with sender's initials

旧时模样 提交于 2021-01-29 07:51:01
问题 I am trying to save emails as .msg files. I am using the following code, resulting in the filename format "yyyy-mm-dd - sender - title.msg". I need the sender's initials instead of the whole name. Sub OpenAndSave() Const SAVE_TO_FOLDER = "C:\Users\Documents\Emails\" Dim olkMsg As Outlook.MailItem, intCount As Integer intCount = 1 For Each olkMsg In Outlook.ActiveExplorer.Selection strDate = Format(olkMsg.ReceivedTime, "yyyy-mm-dd - ") olkMsg.Display olkMsg.SaveAs SAVE_TO_FOLDER & strDate &

Wrong time in a ICS file

試著忘記壹切 提交于 2021-01-29 07:31:59
问题 I 'm developing a PHP tool to create an ICS file that will be sent by mail. After creating the file, I try to add it in Outlook 2016 or iCalendar (Apple) . All information is correct except the start time and end time. They are offset from one hour. Exemle : BEGIN:VCALENDAR METHOD:PUBLISH VERSION:2.0 PRODID:-//Communication Maker CALSCALE:GREGORIAN BEGIN:VEVENT DTSTART;TZID=Europe/Zurich:20151201T150000Z DTEND;TZID=Europe/Zurich:20151201T180000Z UID:565c50b5ca7d9 LOCATION:Location SUMMARY

Search by subject for latest email in all folders and reply all

别等时光非礼了梦想. 提交于 2021-01-29 07:29:36
问题 The code below doesn't execute reply all property, hence, I am not able to edit the body of the email and keep the conversation of the email chain. I think the best option is to use Application.advancesearch as it gives you latest email by searching through all folders. But I do not know how to run it through Excel. Objective: 1) Search the inbox and subfolders (multiple) and Sent items folder for the latest email for selected "Subject" 2) select the latest email and reply to all Sub

Read Emails From Outlook using Python Fails if Meeting Invites Are Present

梦想的初衷 提交于 2021-01-29 07:16:01
问题 I've been able to work out some code through some learning and experiments from resources on the web. I'm stuck at a point that everytime an there is a meeting invite in my outlook mailbox. The code fails to execute. Looking for guidance on how to handle the exception in Python. import csv import win32com.client from datetime import datetime outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI") inbox = outlook.GetDefaultFolder(6) messages = inbox.Items # Create empty

“The tenant for tenant guid does not exist” when using GraphAPI - Even with user type as Member

好久不见. 提交于 2021-01-29 07:12:43
问题 I am trying to access email using Microsoft Graph API. When I try to access the email I got the below error. Microsoft.Graph.ServiceException: 'Code: OrganizationFromTenantGuidNotFound Message: The tenant for tenant guid '<some id>' does not exist. Here is the code to get the emails var graphServiceClient = new GraphServiceClient(new DelegateAuthenticationProvider((requestMessage) => { requestMessage.Headers.Authorization = new AuthenticationHeaderValue("bearer", accessToken); return Task

Create outlook draft email in python with out launching outlook application

爷,独闯天下 提交于 2021-01-29 06:08:56
问题 I need to create an email draft and save in msg format without launching the outlook application. (Or) I have an existing draft msg file, I need to modify the sender, body, and attachment to that file and save as msg file. I tried win32 it is working fine, but it is launching the outlook application in my system. In my server, there is no outlook application. Can you please tell me is there any other ways to generate the msg file. 回答1: If you don't want to to use the Outlook Object Model, you

MailItem.GetInspector.WordEditor returns Nothing

房东的猫 提交于 2021-01-29 05:23:00
问题 I'm composing an email using VB.Net which is opened in Outlook 2013 . I need to the contents to be displayed in its default font which is set by the user. Now i need to get the default font and set to the email. When i tried it returns null at one place. //Code: Private m_valDefaultFontSpec As DefaultFont Sub GetDefaultFontSpec(Optional blnGetReplyFont As Boolean = False) Dim objDoc As Document Dim rng As Range Dim objDummy As MailItem On Error Resume Next ' Create a "dummy" mail object, Set

VBA Outlook Signature Image

ⅰ亾dé卋堺 提交于 2021-01-29 04:44:57
问题 I'm trying to change outlook email signatures automatically depending on a specific keyword on the subject. On my first try I added the signature at the bottom of the email. The signature came perfect including image and all but that there was an issue with the placement as the signature was appended at the very bottom of the email below the original text. On my second try I set up a default signature that works as a placeholder. The macro then finds the placeholder and replaces it with the