How can we send an email through MFC. Can sombebody give me an example?

Suppose we have dialog based application with a button to send mail. What could shall we write to make possible an email without giving user interface.