开发者

Sendmail without password authentication (Python 2.4)

开发者 https://www.devze.com 2023-02-28 01:30 出处:网络
How can开发者_JAVA百科 I sendmail from Python 2.4 without any password authentication?Look at the smptlib example:

How can开发者_JAVA百科 I sendmail from Python 2.4 without any password authentication?


Look at the smptlib example:

http://docs.python.org/library/smtplib.html

There is no documentation telling you that authentication would be mandatory.

Authentication is optional.


You need to configure your mail server to allow unauthenticated relaying from the IP running your python code (e.g. 127.0.0.1 if it's the same system).

However, ensure that you do not allow relaying for the world - otherwise your server will be throwing SPAM emails around and get blacklisted for it soon.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号