--- id: smtp title: SMTP --- # SMTP SMTP plugin can connect ToolJet applications to **SMTP servers** for sending emails. ## Connection A SMTP server can be connected with the following credentails: - **Host** - **Port** - **User** - **Password** :::info You can also test your connection before saving the configuration by clicking on `Test Connection` button. :::
- **Body** : You can enter the body text either in the form of `raw text` or `html` in their respective fields.
- **Attachments** : Attachments can be added to a SMTP query by referencing the file from the `File Picker` component in the attachments field.
For example, you can set the `Attachments` field value to `{{ components.filepicker1.file }}` or you can pass an object `{{ name: 'filename.jpg', dataURL: '......' }}` to accomplish this.