Only send emails in dev and prod mode