[Twisted-Python] stmp client with multipart

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Fri Mar 28 16:12:10 MDT 2014


On 08:36 pm, kebin70 at gmail.com wrote:
>How can I get something similar into a smtp client 12? multipart 
>message

Hi Kevin,

MIME and SMTP are at different layers.

Twisted's SMTP client doesn't care what bytes you shove through it. 
They're just bytes.  They can be MIME or not.  Construct the bytes using 
the stdlib's MIME functionality if you want - once you have the bytes, 
the way you use them with Twisted's SMTP client is the same no matter 
what they are.

Jean-Paul



More information about the Twisted-Python mailing list