Generating an email to Trading partner

After creating a MIME message, how can I generate an email of the output to a recipient 1) for development 2) runtime

Can you please make your requirement little more clear…If your doubt is basic e-mail sending…
Use pub.client:smtp
You can get the partner e-mail address from TN profile.