-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemail_peruzzo-specia.py
More file actions
55 lines (42 loc) · 2.02 KB
/
Copy pathemail_peruzzo-specia.py
File metadata and controls
55 lines (42 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 Rossella,<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 = "rossella.specia@wolterskluwer.com"
message.CC = "marco.bitossi@wolterskluwer.com;claudio.ferrante@wolterskluwer.com"
message.Subject = 'Inflow indiretta'
message.HTMLBody = html_body
message.Attachments.Add(Source=dashboard_inflow_indiretta)
message.Display()
############################################################################################################
#Peruzzo
dashboard_inflow_clienti_inside = r"C:\Users\Raffaele.Sportiello\OneDrive - Wolters Kluwer\Documents\Dashboard inflow\Dashboard inflow canali e prodotti\Speciali\Dashboard inflow - Clienti inside sales.xlsb"
image_path = r'C:\Users\Raffaele.Sportiello\OneDrive - Wolters Kluwer\Documents\Dashboard inflow\Dashboard inflow canali e prodotti\Speciali\clienti_inside.png'
html_body = """
<div>
<p>Ciao Laura,<br><br>
in allegato il file con i dati aggiornati.<br><br>
Un saluto,<br>Raffaele<br><br></p>
</div>
<div>
<img src={}></img>
</div>
"""
outlook = client.Dispatch('Outlook.Application')
message = outlook.CreateItem(0)
message.To = "Laura.Peruzzo@wolterskluwer.com"
message.CC = "marco.bitossi@wolterskluwer.com;claudio.ferrante@wolterskluwer.com"
message.Subject = 'Aggiornamento inflow clienti inside sales'
message.HTMLBody = html_body.format(image_path)
message.Attachments.Add(Source=dashboard_inflow_clienti_inside)
message.Display()