• File attachment via JS

    From Merlin@VERT/CARSO to All on Sat Jan 7 15:41:00 2006
    Hi.

    I want to edit my custom logon routines to email new users and attach a file to the message. Is this at all possible using JavaScript?

    Using JS I can create a message and set the attachment flag on the message okay, but how do I tell the message which file to attach and where do I put the file?

    Thanks
    Merlin

    --------------------------------------------------------------
    Merlin þ SysOp of CarSo BBs þ telnet://carso.synchro.net --------------------------------------------------------------


    ---
    þ Synchronet þ CarSo BBs þ Beverley, UK þ telnet://carso.synchro.net
  • From Digital Man@VERT to Merlin on Sat Jan 7 10:39:00 2006
    Re: File attachment via JS
    By: Merlin to All on Sat Jan 07 2006 08:41 pm

    Hi.

    I want to edit my custom logon routines to email new users and attach a file the message. Is this at all possible using JavaScript?

    Yeah, it should be.

    Using JS I can create a message and set the attachment flag on the message okay, but how do I tell the message which file to attach and where do I put file?

    The filename is in the subject of the message. Copy the file into the data/file/####.in directory (where #### is the user's account number, zero-padded to 4 digits).

    digital man

    Snapple "Real Fact" #19:
    Children grow faster in the spring.
    Norco, CA WX: 80.2øF, 28% humidity, 0 mph WSW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net