@HamedKamrava
rset
simply resets the session so you can start another (i.e. to send another mail). Authentication via telnet can be a bit tricky, as it seems yahoo doesn't support plain authentication. Take a look here: ndchost.com/wiki/mail/test-smtp-auth-telnet