I am able to send email using following code :
import win32com.client
olMailItem = 0x0
obj = win32com.client.Dispatch("Outlook.Application")
newMail = obj.CreateItem(olMailItem)
newMail.Subject = "My Subject"
newMail.Body = "My Body"
newMail.To = "[email protected]"
newMail.send()
But when It sends email, a warning is generated by outlook "A program is trying to send Email..." How to disable such kind of warnings ? Please help..