• Baja - sending e-mail

    From Nidas@VERT/PERKUNAS to All on Tue Feb 20 03:39:00 2001
    Last night i made a replacement login prompt for my BBS.ãNow to complete the job i need one thing to finish - i includedãa R)ecover option if user has forgot the password.ãIt should do the following: 1. retrieve user's e-mail adress from hisãprofile 2. send e-mail with his password to that address.ããNow i need help with Baja functions for these tasks. I read about ã_USERON.* variables, but can these be used when user isn't actuallyãon? he's at login prompt and only entered his username.ããSecond thing is sending a textfile using Synchronet e-mail server. I seeãit can be done (PG telnet verifier) but how?ããAs i know Synchronet has good docs to look for the answer, but nowãi have no time (i'm leaving the house) so maybe until i return someoneãpost some ideas?ããNidasãããã---ã þ Synchronet þ perkunas.thebbs.org * Kaunas, Lithuaniaã
  • From PistolGrip@VERT/WASTELND to Nidas on Mon Feb 19 20:06:00 2001
    RE: Baja - sending e-mailãBY: Nidas to All on Tue Feb 20 2001 11:39 amãã > Last night i made a replacement login prompt for my BBS.ã > Now to complete the job i need one thing to finish - i includedã > a R)ecover option if user has forgot the password.ã > It should do the following: 1. retrieve user's e-mail adress from hisã > profile 2. send e-mail with his password to that address.ã > ã > Now i need help with Baja functions for these tasks. I read aboutã > _USERON.* variables, but can these be used when user isn't actuallyã > on? he's at login prompt and only entered his username.ããI'm not sure how you could do this unless you actually has a user enter hisãname, and then load the USER.DAT file manually and parse it. I do somethingãlike this in one of my mods, but BAJA isn't the easiest thing to do this with.ãYou must manually control the filepos and such. Doing it this way would beãfairly complicated with BAJA, but then again it can be done. Rob might haveãsome more suggestions on this. I don't know how BAJA would know who the userãwas without someone being logged on.ã ã > Second thing is sending a textfile using Synchronet e-mail server. I seeã > it can be done (PG telnet verifier) but how?ããWith the latest Telval release I am just calling SMBUTIL.EXE from the scriptãwith the proper parameters to send a text file. The problem with this is itãdoesn't seem to work on Windows 2000 for some reason. SMBUTIL executes fromãthe script fine on Win9x systems but under Windows 2000 it doesn't seem toãexecute properly. Have not found a fix yet. I've decided to hault developmentãof Telval until I can get this fixed. I'm not sure if it's my code or aãproblem with BAJA and WinNT/2000. I've since started re-writing Telval withãthe XSDK and include my own SMB code, but it might be some time before Iãactually get one that works :-)ããI released an example a while back of how to send email/netmail with SMBUTILãfrom BAJA. I can't remember the filename. Try looking on my BBS. There is noãinternal way in BAJA to send an email from textfile. If you try this let meãknow if you have the same problem with SMBUTIL on Win2000.ãã > As i know Synchronet has good docs to look for the answer, but nowã > i have no time (i'm leaving the house) so maybe until i return someoneã > post some ideas?ããActually, I don't think it's in the docs this time :-)ããPGãã---ã þ Synchronet þ WasteLand BBS þ telnet://wasteland.darktech.org ã