Hi I get this warning. I set mailcounter as a global var because I have to change it's value from a method in a class. This was the only way. How can I remove this warning ? Mailcounter is defined at the beginning of the script and "global mailcounter" is called in the method. thanks have fun Felix