Plain text body of the message (enclose multiple words in quotes).
Other Parameters Required:
-body "<single line plain text>"
Example (cut-and-paste right into your batch file):
NetMailBot -body "This is the body of the email. Use this parameter for short messages. Make sure to enclose multiple words with spaces in quotes." -to firstname.lastname@example.org -from email@example.com -server mail.domain.com -subject "test"
The intention is to use either -body or -bodyfile. However, -body acts additively with -bodyfile, so you could use both together, but the contents of the specified body file will be appended to whatever is specified in -body. Suppose the two parameters are used together in a NetMailBot invocation as:
... -body "Here is an inline message body" -bodyfile "C:\bodyfile.txt" ...
Suppose the content of bodyfile.txt is simply "One line in a bodyfile". Then the message will be received with the following body:
"Here is an inline message bodyOne line in a bodyfile"
If -bodyfile refers to a locally stored HTML file, the body will consist of the text from -body followed by the HTML file, but the results may appear strange.
Therefore, we recommend using -body or -bodyfile, but not both at the same time.