Please note that currently you can connect Gmail and Outlook accounts using this integration.
Connection
This handler was implemented using standard Python libraries:email, imaplib, and smtplib.
The Email handler is initialized with the following required parameters:
emailstores an email address used for authentication.passwordstores a password used for authentication.
smtp_serverused to send emails. Defaults tosmtp.gmail.com.smtp_portused to send emails. Defaults to587.imap_serverused to receive emails. Defaults toimap.gmail.com.
At the moment, the handler has been tested with Gmail and Outlook accounts.To use the handler on a Gmail account, you must create an app password following this instruction and use its value for the
password parameter.By default, the Email handler connects to Gmail. If you want to use other email providers as Outlook, add the values for imap_server and smtp_server parameters.Gmail
To connect your Gmail account to MindsDB, use the belowCREATE DATABASE statement:
emails table.
Outlook
To connect your Outlook account to MindsDB, use the belowCREATE DATABASE statement:
emails table.