-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemail_inflow_indiretta.py
More file actions
24 lines (20 loc) · 988 Bytes
/
Copy pathemail_inflow_indiretta.py
File metadata and controls
24 lines (20 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import win32com.client as client
#############################################################################################################
# Specia
#
dashboard_inflow_indiretta = r"C:\Users\Raffaele.Sportiello\OneDrive - Wolters Kluwer\Documents\Dashboard inflow\Dashboard inflow canali e prodotti\Condivisi\Dashboard inflow - Indiretta.xlsb"
html_body = """
<div>
<p>Ciao Francesco,<br><br>
in allegato il file aggiornato.<br><br>
Un saluto,<br>Raffaele<br><br></p>
</div>
"""
outlook = client.Dispatch('Outlook.Application')
message = outlook.CreateItem(0)
message.To = "Francesco.Sanseverino@wolterskluwer.com"
message.CC = "marco.bitossi@wolterskluwer.com;claudio.ferrante@wolterskluwer.com;camilla.fabris@wolterskluwer.com;Deroghe.GTM@wolterskluwer.com;trademarketing-IT@wolterskluwer.com"
message.Subject = 'Inflow indiretta'
message.HTMLBody = html_body
message.Attachments.Add(Source=dashboard_inflow_indiretta)
message.Display()