Mock mailer implementation for testing

Change-Id: I7e6bc55d4b3265e47db38bc975e16b81055c78b2