outlook

Reflection on COM Interop objects

China☆狼群 提交于 2020-01-22 20:02:26
问题 Trying to create a mapper for an Microsoft Office object to POCO's and found this // doesn't work // returns an empty array where o is a RCW on an office object foreach(var pi in o.GetType().GetProperties() ) tgt.SetValue(rc, pi.GetValue(o, null)); so have to resort to this foreach(var field in tgt.GetFields() ){ var pv = o.InvokeMember(field.Name, System.Reflection.BindingFlags.GetProperty, null, o, null); i.SetValue(rc, pv); } which works for now but wondering why the RCW.GetProperties()

win32com.client.Dispatch(“Outlook.Application”) error pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)

廉价感情. 提交于 2020-01-22 12:25:08
问题 I am on windows 7 and I have windows live installed. Now when I am trying to run following code import win32com.client win32com.client.Dispatch("Outlook.Application") I am getting following error Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,c lsctx) File "C:\Python27\lib\site-packages\win32com\client\dynamic

How to make an image responsive in HTML email regardless of image size

时光总嘲笑我的痴心妄想 提交于 2020-01-22 10:01:24
问题 I am creating an email template where my container has a max-width: 600px. I want to be able to upload images that are in excess of 800px wide, and the images to scale down to maintain their intended aspect ratio. So even if I uploaded an 800px wide image, it would scale to 600px. In Outlook, I don't think it supports max-width for images which therefore caused it to stretch. Are there any solutions for this? 回答1: Yes and no. Outlook tends to force the image to its actual size, regardless of

What are the CSV headers in Outlook contact export?

橙三吉。 提交于 2020-01-22 08:38:15
问题 I need to generate a contacts list in CSV format, as if exported by Outlook. But I don't have Outlook (or Windows) to check what exact headers it generates. What I'm asking for is a sample of a CSV contacts file as exported by Microsoft Office Outlook Contacts (a different question indicated that different versions produce identical output, so the exact version of Outlook is not important). The first line of it would be enough. It would also be nice to know for sure what the line-endings are

What are the CSV headers in Outlook contact export?

旧时模样 提交于 2020-01-22 08:36:49
问题 I need to generate a contacts list in CSV format, as if exported by Outlook. But I don't have Outlook (or Windows) to check what exact headers it generates. What I'm asking for is a sample of a CSV contacts file as exported by Microsoft Office Outlook Contacts (a different question indicated that different versions produce identical output, so the exact version of Outlook is not important). The first line of it would be enough. It would also be nice to know for sure what the line-endings are

Connect to Outlook calendar from C# using Interop

早过忘川 提交于 2020-01-22 02:35:07
问题 Ok I am trying to connect to an Outlook calendar from C# using the following code: using Outlook = Microsoft.Office.Interop.Outlook; Outlook.Application msOutlook = new Outlook.Application(); Outlook.NameSpace ns = msOutlook.GetNamespace("MAPI"); Outlook.MAPIFolder folder = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar); foreach (Outlook.MAPIFolder subfolder in folder.Folders) { MessageBox.Show(subfolder.Name); } However, despite having two Calendars, the piece of code above

Outlook API OAuth2 offline acces / permanent access using php

老子叫甜甜 提交于 2020-01-21 07:15:06
问题 I followed the tutorial below to get mail using outlook api. This works, but requires the user to login every time to give access. Is there a way to give permanent / offline access? Similar to how gmail api works (access to when your not at your keyboard) https://dev.outlook.com/RestGettingStarted/Tutorial/php 回答1: Absolutely! In order to get offline access, you need to add the offline_access scope to your requested scopes. This will result in a refresh token being sent along with your access

C# - Sending Email - STOREDRV.Submission.Exception:OutboundSpamException

女生的网名这么多〃 提交于 2020-01-21 06:55:18
问题 I am writing a small utility to help process some MySQL tasks every night and have it email my personal email if it fails (this is a personal project, so no company smtp server or anything, emails going through public outlook accounts). I tested about 5 times and each send was successful, but now any attempts to send email I get this exception: Error sending test email: Transaction failed. The server response was: 5.2.0 STOREDRV.Submission.Exception:OutboundSpamException; Failed to process

C# - Sending Email - STOREDRV.Submission.Exception:OutboundSpamException

不打扰是莪最后的温柔 提交于 2020-01-21 06:54:06
问题 I am writing a small utility to help process some MySQL tasks every night and have it email my personal email if it fails (this is a personal project, so no company smtp server or anything, emails going through public outlook accounts). I tested about 5 times and each send was successful, but now any attempts to send email I get this exception: Error sending test email: Transaction failed. The server response was: 5.2.0 STOREDRV.Submission.Exception:OutboundSpamException; Failed to process

Send authenticated mails via Outlook through R using mailR package

一曲冷凌霜 提交于 2020-01-21 02:28:11
问题 How can I send mails from R via Outlook? I was told to use the sendmailR package, but I could not figure out how to specify certain control settings (such as port, username and password). I was also redirected to this post, but it did not help. I switched to the mailR package. I can send mails from other servers, such as smtp.gmail.com , but I do not know the Outlook server details. What are the protocol, server and port details required to send mails via Outlook using mailR ? 回答1: This took