Then, to close the application, you need to download a small program, called "PSKILL.exe", which allows you to close processes via DOS (/batch file). This can be downloaded here: http://www.sysinternals.com/files/pskill.zip
You can then use it like so:

That's a way to give the batch file some time to execute before trying to close Explorer. But you never know whether or not the page has been actually been able to send the email by the time you try to kill it.

Btw, did you check out any of the command line mail send utilities I recommended. That would be a much cleaner approach and failproof as well.

0

zoomzoomdevelopersAuthor Commented: 2005-04-22

Yes, have checked the programs but due to firewall the mail utilities return a connection error to port 25 which is what we use to send outgoing SMPT mails.

Now developing an ASP page so that to send the mail from but like you said i'll have to work out the pause times to allow it to send correctly before closing.