update email sending in anticipation of ryan's commit