When multiple -body arguments are added to the command line or an -optionFile is provided with an included -body argument in addition to a -body argument on the command line the pieces of body content are no longer appended. Instead only the last -body argument is used.
This behavior has changed with the release of version 3.0.0+.
2.6.2 - SUCCESS - Multiple body contents appended
2.7.5 - SUCCESS - Multiple body contents appended
2.7.6 - SUCCESS - Multiple body contents appended
3.0.0 - FAIL - Does not append
3.0.7 - FAIL - Does not append
blat -server mail.x.y -mailFrom firstname.lastname@example.org -to email@example.com -subject "corn" -body "Hi there|" -body "- Joe"
-> v3.x - Received message body includes only "- Joe"
[ ## above.opt
[ -server mail.x.y
[ -mailFrom firstname.lastname@example.org
[ -body "I say this for every e-mail||"
blat -optionFile above.opt -to email@example.com -subject "corn" -body "Enjoy the peas!||- Joe"
-> v3.x - Received message body includes only "Enjoy the peas!||- Joe"
The first example (i.e. two -body arguments) is a bit silly, but the second (i.e. -body argmuents in option file and on command line) is useful for providing static text at the beginning of every message body
Log in to post a comment.