So guys, i have the following code:
import win32com.client as win32
outlook = win32.Dispatch('outlook.application')
email = outlook.CreateItem(0)
Image = "########"
email.To = "#######"
email.Subject = "Test of auto email"
email.HTMLBody = f"""<p>Hello world<p>"""
email.Attachments.Add(Image)
email.Send()
print("Email sent")
And would like to know how i insert it in alteryx? some peeps said i could work with python inside alteryx but this tool is kind of confusing to me
There's a lot of e-mail capability inside of Alteryx so I do not believe this is the best use of the Python tool. You can write python code to send an e-mail, but I don't see why you'd want to do that.