Link to home
Start Free TrialLog in
Avatar of bussoftware
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
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bussoftware
bussoftware

ASKER

I would appriciate, if you could send me this component to Olaf.Fries@bussoftware.ch. Thanks a lot.
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?
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
http://www.torry.ru/ras.htm

i used to use Davide Moretti's one
(though there all quite similar.)