Email parameters were not being set properly.