TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: Amessyroom
from: Digital Man
date: 2024-10-14 23:49:00
subject: Problems after recent upd

  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
Norco, CA WX: 59.0øF, 90.0% humidity, 2 mph WNW wind, 0.00 inches rain/24hrs
--- SBBSecho 3.20-Linux
                                                                                                                   
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.