Subj : Problems after recent update of sychronet 3.20 files To : Amessyroom From : Digital Man Date : Mon Oct 14 2024 11:49 pm Re: Problems after recent update of sychronet 3.20 files By: Digital Man to Amessyroom on Sun Oct 13 2024 02:34 am > > 2) I added calls to sendmail.js to try and page me via > > email to SMS gateway. This worked before 10/11/2024. > > > paging sysop calls sendmail.js (per local configuration > > in chat.ini) > > > chat.ini:cmd=?sendmail.js -s "BBS: Someone wants to chat" -- > > XXXXXXXXXX@txt.att .net < /home/sbbs/ctrl/pageme > > chat.ini:cmd=?sendmail.js -s "BBS: Someone wants to chat" -- > > XXXXXXXXXX@txt.att .net < /home/sbbs/ctrl/pageme > > > says it cannot compile. 1st line is a she-bang !# to jsexec > > is that the correct way the file should be ? > > > Paging Amessyroom...!JavaScript sendmail.js line 1: SyntaxError: illegal > > charac t > > er > > > !ERROR compiling /sbbs/exec/sendmail.js Back to this issue: I don't believe this ever worked. sendmail.js is only designed to be run from jsexec (not from sbbs). I would expect sendmail.js to fail in exactly this way if configured like you showed in chat.ini. So, maybe you just never tested this before? sendmail.js when used as intended (invoked from a *nix shell which in turn uses jsexec to execute the script) still works as it always has. If you want to send an email or netmail from SBBS, the proper script to invoke would be postmsg.js, not sendmail.js. -- digital man (rob) Breaking Bad quote #20: So who's your chief, little injun? - Hank Schrader