How to send mail in python ssmtp vs smtplib

I need to send an email to delbian linux. How to send? I am running my server on a 256 MB linux box, and I heard that postfix and sendmail are overloaded.

I recently came across ssmtp, which seems executable, to be executed as a process and called via python using os modules.

python already provides smtplib which works great with me.

What is the advantage of using ssmtp over python smtplib?

+3
source share
3 answers

There are no benefits to the Python program.

ssmtp - SMTP- API sendmail. /usr/sbin/sendmail, , , sendmail ( ); SMTP-. , sendmail, , , SMTP - , , PHP , PHP sendmail (.. sendmail), SMTP . ( PHP , )

Python : , SMTP , sendmail subprocess, , Python. smtplib.

+5

, "", , , . , . .

+2

SMTP-, msmtp, .

Postfix 256- . MTA, Postfix, , , . smtplib ...

+1
source

Source: https://habr.com/ru/post/1706657/


All Articles