• File attachment via JS

    From Merlin@CARSO to All on Sat Jan 7 20: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 to Merlin on Sat Jan 7 15:39:22 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