Sends mail as plain text or html and wraps the basic SMTP library in python