(msg, afile)
| 105 | # attach file |
| 106 | # takes the message and a file name and attaches the file to the message |
| 107 | def attach_file(msg, afile): |
| 108 | part = MIMEApplication(open(afile, "rb").read()); |
| 109 | part.add_header('Content-Disposition', 'attachment', filename=afile); |
| 110 | msg.attach(part); |
| 111 | |
| 112 | #to be tested... |
| 113 | compose_email(['cpt@thelivingpearl.com','',''], |
no test coverage detected