August 24th, 2007
Gmail is a very popular, if not the most popular and used email service on the web. Configuration of your email client to their servers is not the most standard: the ports of smtp and pop services are not the usual, and the service requires ssl. Also pop3 service needs to be activated, it is not activated by default.
I can’t blame them, since they offer a very good service, with gigs of space. A security flaw could escalate to a very big problem. Today my problem is SSL, i’ve been programming in the AIR plataform, and their socket library does not support SSL, so SMTP conection is out of the question, and i pretty much gave up on gmail service for my little project, and used another email service for communication.
Today i found an interesting link, that just may solve the problem. It’s an unofficial documentation of the gmail mobile api.
Adobe air may not support ssl in their sockets library, but it’s supported in a lower level, that is available to other classes such as URLRequest, wich support HTTPS.
So, it seems to be possible to use gmail’s webservice to achieve mailling functionality, using Flex 3 API.
To work around the ssl requirement, the service run through a proxy. Setting up a proxy for the webapi, seems to be a lot of trouble, but it is possible, and aSSL could be of some use, even for a generic webapplication.
Making a proxy to establish TLS with the SMTP server, maybe would be another way to go, and would be a more generic solution, not only for the gmail service.
Workaround seems to be a science by it self!!
Posted in ssl, smtp, AIR | No Comments »