finally, got email to work