Get email status

Add method to get the email status from logs table.