Python smtplib: bind to specific source IP address in a machine with multiple network interfaces

StackOverflow https://stackoverflow.com/questions/5073575

Domanda

On a host with multiple network interfaces, is it possible to bind the connect method from the Python smtplib to an specific source address?

È stato utile?

Soluzione

No such option - at least not without hacking smtplib.connect() yourself.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top