发送自动电子邮件时安全输入密码 [英] Enter password securely when sending automated email

查看:49
本文介绍了发送自动电子邮件时安全输入密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这很可能是重复的...但是我已经仔细研究了类似的问题.这是一种,但它在C#中.或使用Windows PowerShell .或(对于PHP).

This may well be a duplicate ... but I have looked through the similar questions quite carefully. This is the kind of thing, but it's in C#. Or this, using Windows PowerShell. Or this for PHP.

我刚刚发现了如何从Python脚本发送自动电子邮件,并且打算将其用于各种目的,包括各种sys管理员任务需要发出警报的时间.

I have just discovered how to send automated emails from a Python script and I intend to use these for various purposes, including when various sys admin tasks need to issue an alert.

我不希望这些脚本提示用户输入电子邮件帐户的密码,但是显然我也不想在.py文件中写出密码.

I don't want such scripts to prompt the user for the password to the email account, but obviously I don't want to write the password out in the .py file either.

解决这个问题的正确方法是什么?是否有特定的python解决方案?

What's the right way to go about this? Is there a specific python solution to this?

推荐答案

似乎Django的

It seems as though Django's auth module may meet this requirement. I haven't got time to look into it at the moment. I'm not clear, for example, how much of Django you have to include, i.e. whether you can just add this module in isolation.

这篇关于发送自动电子邮件时安全输入密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆