You might want to look at the documentation for the module as you've made a couple of bad assumptions. $mail is never going to equal -1.
The symptoms you are describing sound more like throttling on the GMail side. I know Yahoo throttles and I'd not be surprised if Google did as well.
In reply to Re: Gmail Send problem
by blue_cowdawg
in thread Gmail Send problem
by IvanH
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |