Without mimetext, format your message like this:
message = ("Subject: Test Email\n\n" "This is the body of a test email message.") connection.sendmail(from_addr=sender,to_addrs=receiver, msg=message)