How to configure SMTP to send reports by e-mail

Product:

Microsiga Protheus

Versions:

11 and 12

Step by step:

Here is how to set up sending reports by e-mail (E-mail/Proxy setting), using a Gmail account as example. For other e-mail (SMTP) providers, please refer to the information with your provider and replace them in the corresponding fields.


- Access Configurator > Environment > E-mail/Proxy > Configure


Note 1: currently most SMTP providers use a port other than the default, typically 465 or 587. This port must be entered in the SMTP address field, just after the address, using ###.

Note 2: Gmail uses port 465 when using SSL and port 587 when using TLS (the security type will be set in the next screen of the E-mail/Proxy configuration).


If the Protheus Appserver is on a server that has a Proxy configured, you must enable the "Use Proxy Server" option and fill in the information on the screen.


After setting, enter the section below in the appserver.ini file and restart:

[MAIL]
SSLVersion=2
AuthLOGIN=1
AuthNTLM=1
AuthPLAIN=1



Configuring with Office 365 (Office Online) as an SMTP Provider.

If you are going to use Office365 as SMTP, use the information below, replacing in the respective fields of the images above:

Page 1
SMTP server:
smtp.office365.com:587
Account:
[email protected]
Password:
Your password
Does the server require authentication?
YES
Time-out in seconds:
120
E-mail used in the FROM field:
* Requires the same -mail account



Page 2

Receiving Protocol:
POP3
Does it use Extended SMTP?
Yes
Does it use TLS security?
Yes
Does it use SSL security?
Yes

After setting, enter the section below in the appserver.ini file and restart:

[Mail]
Protocol=SMTP
extendSMTP=1
authLogin=1
authNTLM=1



Notes:

If your test is successful, you will get a confirmation message, as shown below: