Fix for import of MIMEText on older versions of Python. Default to '127.0.0.1' where details not supplied.