Wow, I havent even used smtp using telnet in a long time.
I can't really off the top of my head tell you what to do right.
But I direct you to some really good tutorials.
www.hackerscenter.com
is a very good site man.
You can look there I know for a fact they tutorials on exactly what your looking for.
Good luck.