php 下测试
1.IMAP
imap_open($hostname, $this->imapUsername, $this->imapPassword, null, 1);
$hostname={imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX
2.SMTP
download the extensions from http://swiftmailer.org/
host:ssl://smtp.gmail.com
port 465