get emails working