Fixed failed travis build
Added settings for sending emails
Added send() function for sending emails
Updated send function
Added template to render the email body.