Getting SMTP Server Information
There are several services that have email providers with SMTP server information, such as Google, Microsoft, and so on. In addition, it is common to see web hosting services, and for this example, we will use the SMTP server of the ScriptCase Host hosting service, where we can easily obtain the necessary information to enable the SMTP API in ScriptCase.
When accessing cPanel, we go to the "Email Accounts" option, which is located right in the first block, called "Email":
We will notice that our account will already be enabled for use, and we go to the "Connect Devices" option, where the SMTP server information will be:
In the "Mail Client Manual Settings" block, we will find the necessary information for SMTP configuration. Remembering that the SMTP server is the outgoing server, unlike other available protocols (POP3 and IMAP), which are incoming servers.
Enabling SMTP Email API in ScriptCase
With the information in hand, let's enable the API in ScriptCase. The first step is to go to the option "Tools -> API", which is located in the horizontal top menu of the tool.
Let's go to the "Add new" option to add the new API profile.
The modal will already open selected in the Gateway "SMTP", and we will fill in the information according to what is requested in each field. A small detail for the fields "SMTP Port" and "SMTP Protocol", where you need to fill in 465 for the first, and SSL or TLS for the second. We click on "Save", and soon our API will be active for use: