thank you very much for your reply. This script is exactly what I have been looking for for a long time. I still got one question though: how do I send pdf-files as an attachement? When I try to send them to myself I download them in 13 sec's and an error appears when I open them. I gues I have to change something to let the script know I'm sending a pdf .... but I can't figure out what to change. I hope you could give me a hand with this.
Thanx again, Michiel