Synchronize Emails with Gmail
Aspose.Email for SharePoint supports both POP3 and IMAP protocols when synchronizing emails. Gmail also allows free POP and IMAP access to email clients like Outlook Express, Microsoft Office Outlook, Thunderbird or any API like Aspose.Network.
This article shows how to use Aspose.Email for SharePoint’s email synchronization feature to synchronize emails with Gmail.
Aspose.Email for SharePoint’s email conversion component is an easy-to-use tool for synchronizing emails with SharePoint’s custom list of emails. With support for popular protocols and email servers, like POP3, IMAP and Microsoft Exchange Server, Aspose.Email can connect with a variety of email servers and synchronize email.
Setting up Gmail
To get emails from Gmail using an email client, POP or IMAP must be enabled from the Gmail settings page. By default, it is disabled.
To enable POP3 and IMAP:
- Log in to your Gmail account and click Settings in the top right corner.
- Click Forwarding and POP/IMAP to change POP and IMAP settings.
- Enable POP and choose the appropriate “Enable POP” option:
- Enable POP for all mail to download all emails (new and old).
- Enable POP for mail that arrives from now on to download new emails only.
- Enable IMAP.
For IMAP, there are only two choices:
Enable to download all messages from your mailbox.
Disable turns off the service. Don’t select this option.
The Forwarding and POP/IMAP tab in Gmail
Setting up Aspose.Email for SharePoint
- In SharePoint, click Sync Settings on the Aspose Tools ribbon to open the settings window.
- Specify Gmail’s POP3 settings to synchronize with Gmail using POP3 protocol. Enter the following information in this screen:
- Enable Sync: check
- Protocol: POP3
- Mail server: pop.gmail.com
- Port: 995
- SSL: check
- Leave on Server: check
- Username: email@example.com (specify complete email address)
- Password: specify Gmail’s password
- Schedule: choose “Minutely” and “Every 5 minutes” or whatever suits you The Sync Settings dialog.
- Verify the connection by clicking Click to test connection parameters. If there is anything wrong with the credentials or host address, an error message is displayed.
- Click Save to save the settings. Aspose.Email for SharePoint tries to connect to Gmail every 5 minutes (or any other time specified). It downloads messages and updates email list.
All attachments, embedded images and body formatting is preserved when downloading the messages and creating emails in SharePoint’s custom list of emails.
Synchronizing Emails Manually
To start synchronization manually:
Click Sync now on the Aspose Tools ribbon. The Sync Now dialog is displayed. The Sync Now screen shows a summary of email account settings and the last sync status.
The Sync Now dialog.
Click Sync Now.
Emails listed in a SharePoint list after successful synchronization
Click on any email on the list to open it in SharePoint.
An email displayed in SharePoint.