gguillen/galeranotify — pull request #2 by TJM (2013-10-03 20:16:15+00:00)
Title: CentOS 5 (Python 2.4) compatible import and changing from MIMEMultipart -> MIMEText

Minor changes to make this compatible with CentOS 5 (RHEL 5) ancient Python 2.4. First I switched to MIMEText since it was a simple text message anyhow, MIMEMultipart would be to attach rich text, photos or other media. The name of the module changed slightly between Python versions.

Changes were based on a combination of:
- http://docs.python.org/2.4/lib/node597.html
- http://docs.python.org/2/library/email-examples.html
- http://stackoverflow.com/questions/342437/best-way-to-import-version-specific-python-modules

~tommy