Misc. email related sample code, trials stuff