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
1 answer

Forward email using exchangelib

I need to build an application which simply forwards emails after reading the body (and attachments) from an exchange server. The application is built in the cloud and coded in python, so we thought we would use exchangelib. My goal is to forward…
0
votes
1 answer

exec: name not defined, but works earlier on in the same code

I ran into this when creating a script that exports dirs and mails to another account with exchangelib. When I run code with "exec" it returns as not defined but earlier on in the same code it works. This part doesn't work: exec('a =…
Zeznzo
  • 648
  • 7
  • 14
0
votes
1 answer

Table Format in email body using Python Exchangelib library

I am exploring in python to write email using exchangelib library with body content which contains a table content. I have tried the code to add table in the body content. import pandas as pd import numpy as np from exchangelib import…
0
votes
1 answer

Get Mail and Relies by Subject with Exchangelib

I'm using exchangelib library for my project. I tried search from doc. But I want to list all replies to this mail. filtered_items = a.inbox.filter(subject__contains='foo') How can I get mail and replies? Any advice would be appreciated.
jojo
  • 137
  • 1
  • 3
  • 12
0
votes
1 answer

How to get email addresses from a distribution list?

I am trying to retrieve email addresses of a DL in Exchange 2010. I tried code from this url and am getting an error. https://github.com/ecederstrand/exchangelib # primary_smtp_address: what should be provided here? # cred: do we need to provide…
Sheik Kalidh
  • 33
  • 1
  • 8
0
votes
1 answer

Connecting to Exchange via EWS API - Kerberos authentication - from Windows

Im need to connect to Exchange Server (via EWS api) from Windows and download a message with attachment. So I created the script below. Exchange using Kerberos for authentication. The main questions are: This code will be working? Or should I use…
0
votes
0 answers

Issue using .all for ExchangeLib when filtering inbox

I'm having issue trying to loop through an email inbox. I was previously able to use what I had written, but since reinstalling ExchangeLib I'm now throwing an error. Here is what I have so far. from exchangelib import Credentials, Account from bs4…
JK72
  • 149
  • 1
  • 8
0
votes
1 answer

Setting is_read in Exchange without reading the whole object

I am trying to read some info from a bunch of emails quickly without pulling the whole object and set the mail item as read. Especially so, since most of the emails have large attachments I do not want to pull them. For this I try something as…
RajSoundar
  • 341
  • 1
  • 2
  • 8
0
votes
0 answers

exchangelib dynamically add value to potential argument in filter function

I am trying to add potential arguments to a variable dynamically, and send it to the filter function of exchangelib. I can't get it work. This is what's currently…
HernanFila
  • 66
  • 5
0
votes
0 answers

Python Email PDF from file Directory

I need to email a pdf and a generic cover letter from a file directory to a an email address that matches the 5 digit code. the code can be found in the first 5 of the pdf name and then the corresonding dataframe that contains the 5 digit code and…
Tinkinc
  • 449
  • 2
  • 8
  • 21
0
votes
1 answer

How to pass exchange FileAttachments to pd.read_excel?

I have created a filter with exchangelib to get multiple emails containing .xlsx-files. The next step should be to put into one pd.DataFrame. While I'm trying to pd.read_excel() when i'm iterating over the filter, i'm not able to pass the…
maexrock
  • 3
  • 4
0
votes
1 answer

Syncing Dynamics CRM contacts to Exchange mailcontacts distribution lists

I am looking for a way to automatically check contacts in Dynamics 365 CRM and sync them to mailcontacts in Exchange online distribution lists. Does anyone have suggestions on where to start with this? I was thinking of trying to use python scripts…
0
votes
1 answer

Django 1.11 Add data to form after POST

I am using Django 1.11 and I'm trying to add data to a ModelForm using CreateView after POST submit. The form first submits data to a linked MS exchange account using the exchangelib library. I then return the exchange id created and this is what Im…
cr1
  • 199
  • 2
  • 16
0
votes
1 answer

Exchangelib - Get many room's availabilities

I'm trying to get the availability of all the meeting rooms of my company. Right now, i'm doing it this way: account = Account( primary_smtp_address= "mail_of_one_meeting_room", autodiscover=False, config = config, access_type=DELEGATE) items =…
Elweiss
  • 545
  • 1
  • 4
  • 12
0
votes
2 answers

Read emails and download attachment from Microsoft Exchange Server

connect-to-exchange-mailbox-with-python/3072491....I have refereed the following link to connect to Exchange Online and download attachments and read mails on windows(using Python and exchangelib library). Now I want to accomplish the same task on…
Zayn malik
  • 107
  • 1
  • 4
  • 15
1 2 3
15
16