converted TLE apps to send_mail() method