====== Post Message ====== The Synchronet Post Message module (''postmsg.js'') replaces the functionality of the ''[[util:smbutil]] i'' command and is the recommended method for auto-posting (or e-mailing) messages. The source for this module is stored in [[dev:CVS]] [[http://cvs.synchro.net/cgi-bin/viewcvs.cgi/exec/postmsg.js|here]] ===== 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 options: -i import 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 use default values (no prompt) for to, from, and subject 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}}