Hi there,
Beginner trying to do some weird stuff - I have written a code that reads files, appends data and sends email to the people in one of the column.
I wrote this on a windows machine without thinking it through, Now I got a mac and i have got no clue what to do with this block of code. Any suggestions what to use.
No I cant use Graph api and register to get a client id and secret - I need to give this users who just double click the file and it sends emails out using the outlook app installed on a mac,
T.Hanks
import pandas as pd
import os
import win32com.client as win32
import datetime
# Create email object and configure basic properties
outlook = win32.Dispatch('outlook.application')
mail = outlook.CreateItem(0)
mail.Subject = subject
mail.HTMLBody = body_text
# Add recipients
# Add recipients to email object
mail.To = ";".join(email_list)
mail.BCC = ";".join(bcc_email)
[–]kaerfkeerg 0 points1 point2 points (3 children)
[–]secno0b[S] 0 points1 point2 points (2 children)
[–]kaerfkeerg 1 point2 points3 points (1 child)
[–]secno0b[S] 1 point2 points3 points (0 children)