Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52223
| References | <28e2b5ac-6dbf-4f90-a0f0-fc5cc33fc2ef@googlegroups.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2013-08-08 13:31 -0600 |
| Subject | Re: How Do I get my Python script to attach multiple files and send as a single email |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.368.1375990315.1251.python-list@python.org> (permalink) |
On Thu, Aug 8, 2013 at 1:05 PM, <wachkama@gmail.com> wrote: > I have a dilemma I cant figure out how to send multiple files as an attachment to my email using this script. I can only send a single file attachment . Help!!! Here is my script. You just need to repeat part3 for each attachment. Also the content type in part3 should be the content type of the attachment, not multipart/mixed. You might also want to take a look at the email package in the standard library which will do a lot of this stuff for you. http://docs.python.org/3/library/email.html
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How Do I get my Python script to attach multiple files and send as a single email wachkama@gmail.com - 2013-08-08 12:05 -0700 Re: How Do I get my Python script to attach multiple files and send as a single email Gary Herron <gary.herron@islandtraining.com> - 2013-08-08 12:19 -0700 Re: How Do I get my Python script to attach multiple files and send as a single email Ian Kelly <ian.g.kelly@gmail.com> - 2013-08-08 13:31 -0600 Re: How Do I get my Python script to attach multiple files and send as a single email Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-08 15:32 -0400
csiph-web