Just showing some love for this post I've always messed around with the mail api, but never could figure out the connect method

Thanks

EDIT:

For people using the newer version of Mail api...