Default Auto sync mails on wifi

Hi, small question...
Is there a setting to make my mail automatically sync as soon as it is connecting to a wifi network.
I give an example... i come home, my tp2 logs on to my wifi and automatically checks my emails...
For the moment i still have to do it manually...
Any tips from you pro's outhere?
It must only check trough WIFI not via 3g or mobile internet