Re: [Twisted-Python] stmp client with multipart

2014-03-28 Thread Kevin Mcintyre
ah, it just seems like the next smtp client (potentially 12) from the samples could be multipart mime. On Fri, Mar 28, 2014 at 3:12 PM, wrote: > On 08:36 pm, kebi...@gmail.com wrote: > >> How can I get something similar into a smtp client 12? multipart message >> > > Hi Kevin, > > MIME and SMTP

Re: [Twisted-Python] stmp client with multipart

2014-03-28 Thread exarkun
On 08:36 pm, kebi...@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 byt

[Twisted-Python] stmp client with multipart

2014-03-28 Thread Kevin Mcintyre
How can I get something similar into a smtp client 12? multipart message fn = "example.mp3" multipart = MIMEMultipart('alternative') multipart['Subject'] = 'Tutorate!' multipart['To'] = 'Selfie' multipart['From'] = 'Selfie' text = "Hello, how are you, goodbye." textpar