add sendEmail script for phoenix