once there is an smtp server running on the server then that code will run fine, i use it myself for a similar reason, not having outlook on the server.
Slán
~M
>I am trying to get my foxpro program to run on a server and if there are any errors to send an email so we know that the program failed and can correct the problem. the infrastructure dept here will not allow us to use outlook on the server. Currently we are running these programs on a pc that has outlook.
>
>Thank you
>
>William
Go raibh maith agat
~M