modified send mail