closes #299 emails can now be sent via smtp with username and password