how can I import email from gmail using php classes.. or using gmail like api
See the Gmail configuration information for POP for hints.