====== Post Message ====== The Synchronet Post Message module replaces the functionality of the ''[[util:smbutil]] i'' command and is the recommended method for auto-posting (or e-mailing) messages. You should be able to find the source for this module (''postmsg.js'') in your Synchronet ''[[dir:exec]]'' directory. ===== Usage ===== The postmsg module may be executed from the Synchronet Terminal Server (e.g. as //Timed Event// or using the '';EXEC'' sysop command) with a ''?'' prefix (e.g. ''?postmsg -option sub-code''), or it may be executed from an operating system command prompt via [[util:JSexec]]. The command-line syntax is very similar to the import (''i'') command supported by ''[[util:smbutil]]''. ==== Syntax ==== usage: postmsg.js [-option] [-option] [...] must be a valid sub-board (msgbase) internal code or 'mail' options: -i import body text from filename rather than stdin -t set 'to' user name -n set 'to' netmail address -u set 'to' user number -f set 'from' user name -e set 'from' user number -s set 'subject' -D set message date in numeric format -T set message date and time in string format supported by JS Date() -d use default values (no prompt) for to, from, and subject -F set file request attribute flag Note: You may need to enclose multi-word options in quotes (e.g. "-fMy Name") ===== See Also ===== * [[:module:|Modules]] * [[:module:Bulkmail]] module {{tag>smb smbutil jsutil}}