Handle Outlook Send Event in Python -


i attempting use following python code send email through outlook server pop indicating "a program trying send e-mail message on behalf. if unexpected, click deny , verify antivirus software up-to-date." know can disabled in outlook settings unable not have administrator access. question there way programmatically handle/avoid through python? aware can avoiding using smtplib unable connect server through not solution.

thanks!

import win32com.client olmailitem = 0x0 obj = win32com.client.dispatch("outlook.application") newmail = obj.createitem(olmailitem) newmail.subject = "test subject" newmail.body = "test body" newmail.to = "mail@place.com" newmail.send() 

this feature cannot disabled end-user. prompt not displayed if have up-to-date anti-virus app on system. if cannot control user environment, options listed @ http://www.outlookcode.com/article.aspx?id=52

essentially in php limited either redemption, outlook security manager, or clickyes.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -