add todo at sendmail function