Created the automated email macro

Created a very buggy automated email macro for initial development stage.