You can check mail but on servers whit pop3 but if the mail is in gmail.com for exaple you need TLS protocol. I am working on this project now. SSL conection on tcl is real and posible. I have criptation algorithms RC4 and MD5 but i don't have time now for write final script.
I have this idea in mind for a lot of time => TCL like sendmail on linux