Email functionality working, dev mode