getSubjects and sendEmail