Communication: simple, secure messaging¶
Send some emails¶
The following script allows a user to enter a master password before starting a long task, authorising later use of their email (gmail) account.
import pypersonalassistant.secure
ppa_secure = pypersonalassistant.secure.secure()
results = some_long_task(foo, bar)
recipients = ['my.boss@company.com',
'coworker.one@company.com',
'coworker.two@company.com'
]
content = 'Subject: Results of my task\n{0}'.format(results)
for r in recipients:
ppa_secure.email(r, content)