Poco General FAQ - Sending a message body to Poco

Q: Is it possible to send message body text to Poco using command line parameters?

I have gotten it to accept a subject line using the standard "mailto" syntax, but I am writing an application that I would like to be able to send the message as well.

Yes you can send the body, the recipients (to, cc and bcc) and the subject too if necessary. There are a couple of ways you can do this:
  • You can send them as command line parameters as part of the "Mailto:' syntax, e.g.:
    "mailto:someone@somewhere.com&subject=xyz&body=This is a body."
  • You can have your application generate a script that you can launch via the "/r" command line parameter (eg: /r "ScriptName").