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