Sending Email with Python Win32Com.Client Send Error
问题 I have my script to send out messages on Outlook via Python win32com.client. I can create the email and format my body but when I try to do newmail.Send() I am getting an error I cannot figure out. Below is my code along with the error: obj = win32com.client.Dispatch("Outlook.Application") newMail = obj.CreateItem(olMailItem) newMail.Subject = "Subject" newMail.Body = "Actualemail" newMail.To = "test@test.com" newMail.Send() I get the follow error : Traceback (most recent call last): File "