Send Email
Email attachments
5min
Email attachments is a must have when building automations that involve email communications.
- SMTP server
1. Create the SMTP credential.
2. Create the document template (you have the ability to use variables in your templates).
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/Nh3Rx81AKTJeKOpbN2VBb_image.png?format=webp)
4. Create the process.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/bxUyLtq-qjUPdXn4LUtmh_image.png?format=webp)
5. Configure the actions:
Create the process variables:
- <%vacation%> - output variable of type File.
- <%StartDate%> - input DateTime variable.
- <%EndDate%> - input DateTime variable.
- <%Reason%> - input String variable.
- <%Name%> - input String variable.
Click the Generate Document action:
- Select the document template*
- type a name for the file you will create
- choose the File variable that will store the document.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/UrAT5-d-YRdqzV_pb7JaV_image.png?format=webp)
Click Map Document Data and use the following configuration
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/-LNzp4xNM71GfqusbVsHV_image.png?format=webp)
b. List Add
- create the list variable <%attachment%> of type File.
- use the following configuration to add the <%vacation%> file variable in to the <%attachment%> variable.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/x4esHAZJVnvE8jX7oSGnO_image.png?format=webp)
c. Send Email - add the configuration and map the <%attachment%> variable to the email.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/rYBQZwjATrPfvnXdXq6Hs_image.png?format=webp)
6. Save, Validate and Run the process. You will be asked to enter the values of the input values. Click Run again.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/r8Kca-ZXxVM2Hcsjcfmwv_image.png?format=webp)
7. Click Check instance to view the result.