changed type of :to field for emails