How to stop smtp-transfers?

Hey!

I am working on a mail-client and I couldn't figure out how to stop
smtp-transfers
once I did NMSMTP.Sendmail and the mail was going out. If someone could help
me out, I would be very happy.

Carlos