bussoftware
asked on
Disconnect after sending SMTP-Mail
If I use the Fastnet Component TNMSMTP to send an e-mail, I've to connect to a mail-server. If I don't have direct access to the internet, my computer automatically connects to it via RAS-Network. After sending and disconnecting from the mail-server the connection to the internet stays remaining. What can I do to disconnect this RAS-connection in D5?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
If I use ras.pas in an own dll on WinNT 4.0, where RAS isn't installed (the rasapi32.dll is missing), I get an error. Is it possible to compile the dll in a way that the rasapi32.dll needn't be in the system folder?
ASKER
Another comment: Your source is right if there is only one RAS connection. Under WinNT you may have more than one, so you have to resize the record.
for this approach at hanging up the connections rasapi32.dll needs to be either on the windows search path (usually windows system)or in your programs directory else it will error .
you may send me the ras.pas to?
tr@vis.is
thanks
tr@vis.is
thanks
ASKER