Fixed a logging bug, missing self reference. Email formatting and sending done. Running in testing now