added code for Gmail, not implemented