>Nadya - your code worked absolutely fine. I was not sure about the sendmails() routine but I see from the reference you have given, it handles the situation where goupwise is not available.
>
>Thanks for your assistance with this. Saved me hours!!
>
>Barry.
Glad I could help, though the original author of this code is Robert Peirce, I just made few minor modifications. BTW, I'm thinking about expanding its capabilities, but I'll better start a new thread for this idea...
If it's not broken, fix it until it is.
My Blog