(msg, atext, mode)
| 89 | # attach text |
| 90 | # attaches a plain text or html text to a message |
| 91 | def attach_text(msg, atext, mode): |
| 92 | part = MIMEText(atext, get_mode(mode)); |
| 93 | msg.attach(part); |
| 94 | |
| 95 | # util function to get mode type |
| 96 | def get_mode(mode): |
no test coverage detected