Adding email sessions functionality