Questions tagged [exchangelib]

exchangelib is a Python package which provides an interface for communicating with a Microsoft Exchange 2007-2016 Server or Office365 using Exchange Web Services (EWS).

See also

235 questions
0
votes
0 answers

How do you use exchangelib (or another python package) to create an Exchange distribution list?

I'm looking at exchangelib and the various docs studying for a solution to create distribution lists programmatically. I see mention of a DLMailbox class, but no guidance as to how to create a DL. Pointers appreciated! Thanks 208_man
208_man
  • 1,440
  • 3
  • 28
  • 59
0
votes
1 answer

ExchangeImpersonation SOAP header must be present for this type of OAuth token in Python

Recently Microsoft has withdrawn the basic authentication service for accessing the Exchange Service. Therefore I am working on switching the authentication from basic to OAuth based. However, during the testing, I come across the below exception. …
0
votes
0 answers

exchangelib connect to office 365 shared mailbox failed

I need to write a python script which checks for incoming e-mail in a shared mailbox hosted on office 365. I have used python exchangelib 4.7.3: Code #!/usr/bin/env python3 import logging from exchangelib import Credentials, Account, Configuration,…
Kami
  • 5,959
  • 8
  • 38
  • 51
0
votes
1 answer

exchangelib Library failure in Python with PyInstaller

I am writing an application that will connect to the Exchange Server and send an email to a recipient on a scheduled basis. This application depends upon a successful import exchanglib. I'm able to import exchangelib and get all the components I…
AGuler
  • 1
0
votes
1 answer

Using exchangelib GetUserAvailability service

I have a user Contact in Exchange that I need to query the free/busy time info for. I can do that in Outlook by adding them to a calendar invite and then checking the user's free time. Is the same possible with exchangelib?
0
votes
2 answers

exchangelib - No Body element in SOAP response

I am using exchangelib to connect to Exchange Server 2013 and reply to emails, But this week my company moved to another City. All my Script was working fine before we move. Outlook working fine for me in the new location May be someone know how to…
0
votes
0 answers

An element node 'soap:Envelope' of the type Element was expected, but node 's:envelope' of type Element was found

I get this with EWS when I try to get emails from my adresse. This my code and it was working fine from exchangelib import Account, Credentials, Configuration, Message, DELEGATE, Mailbox, FileAttachment, HTMLBody, FolderCollection from…
0
votes
2 answers

The update of exchangelib remove the attribute 'localize' from EWSTimeZone

I was using an old version of the library exchangelib. All was fine with my code until some users of my App start to have some issues. Long story short, I had to install for me and the rest of us the last version of exchangelib exchangelib==4.7.2 So…
Josiane
  • 3
  • 2
0
votes
1 answer

exchangelib: Sending an email as a distribution list

I'm using the exchangelib python EWS library to send emails. Sending from my mailbox works as expected but how can I send an email from a distribution list I have "Send As" permissions already applied (Have tested in Outlook changing the from…
Tarran
  • 3
  • 2
0
votes
1 answer

Item information for calendar_item

I'm working with calendar information in the XML response from the MS server. I successfully extract fields from CalendarItem, but I also need some of the fields from CalendarItem's ancestor, Item. The response from the server contains that…
0
votes
1 answer

Access Outlook office mailbox(mails in inbox) using python code through EWS

I was reading the Outlook mails through EWS using python exchangelib module credentials I was using for authentication: email & app password Due to some security reasons the platform team have disabled the App password feature and I ended up…
0
votes
1 answer

Exchangelib read emails from a service account without personal login

I would like to read the inbox of a shared service account. The service account inbox is a shared inbox and does not have a password per-se. I can log in and read my personal inbox using this: from exchangelib import DELEGATE, Account,…
0
votes
1 answer

Process email from timestamp great than provided using exchangelib

Sorry If the title sounds confusing I will try my best to explain here, I m trying to scan new emails from the provided timestamp without using DateTime.DateTime.now() for example my provided timestamp is date1 = "2022-02-05 04:03:17.690370+00:00 I…
user17784892
0
votes
1 answer

How do I process email from timestamp with exchangelib?

I will be storing the last processed email timestamp to the database and then when I run the process I want to do greater than that email timestamp. Right now I m doing this way.. which was fine to run for old records but now I want to automate this…
grLearn
  • 43
  • 1
  • 6
0
votes
0 answers

Is it possible to fetch EWS mailbox's owner and member details through exchangelib python library or any other python library?

I am using exchangelib to extract all the mail details (like subject, in_reply_to, received time etc.,) . I need to extract the owner and members who has access to the mail box. When I tried to run: account.delegates it is failing with None type…