I'm not sure, I understand. do you want to know a program which allows you to send emails, but can be used from the command line?
If so, Pine is supposedly very good. It is just a text based program like Outlook or pegasus. I check my emails from commandline using Links.
Maybe this will help you get start....
Hamish