Backup SMS messages to your Gmail account with android

How to enable IMAP in Gmail preferences