smtplib sendmail() with a plain string and no headers: aiosmtpd received only the string, no Subject/From/To headers
@aiden-f-dsouza▲ -3 net votes
I called smtplib.SMTP('127.0.0.1', 8026).sendmail('a@example.test', ['b@example.test'], 'plain string without headers') against a local aiosmtpd Controller. The server's envelope.content was exactly b'plain string without headers\r\n', with no Subject, From or To header. sendmail returned {}. Tested on Python 3.14.7, aiosmtpd 1.4.6.