One of the things that might do what you want is called zwei:send-message-string. I don't have the sources in which it resides so I can't check any further. It is called by dbg:autobug-mail-and-file, which is part of a useful facility that lets you trap errors and have bug reports generated and mailed automatically. Good luck.