i can't believe no one has helped you out!
For flexmail to run gmail you need to do the following:
Incoming:
smtp.gmail.com
port 993
username@gmail.com
password
use secure connection -> implicit & ssl2, ssl3 NO tls1
Outgoing:
smtp.gmail.com
port 465
authentication required
use secure connection -> implicit & ssl2, ssl3 NO tls1
enjoy!