docs/versioned_docs/version-3.0.0-LTS/data-sources/smtp.md
The SMTP datasource facilitates the connection between ToolJet applications and email servers, enabling the apps to send emails.
<div style={{paddingTop:'24px'}}>To establish a connection with the SMTP data source, you can either click on the + Add new Data source button located on the query panel or navigate to the Data Sources page from the ToolJet dashboard and choose SMTP as the data source.
ToolJet requires the following to connect to SMTP server:
The SMTP configuration details like host and port can usually be obtained from your email service provider. Here are some general settings for the most commonly used email providers:
Gmail
Yahoo Mail
Outlook.com/Hotmail
To create a query for sending an email, follow these steps:
Attachments field value to {{ components.filepicker1.file }} or pass an object {{ name: 'filename.jpg', dataURL: '......' }} to include attachments.