[Fixes #46829277] Made changes to the controller to send and recieve emails. Added mail gem that handles the pop3 and smtp settings.