Configuration of sending messages via e-mail

To successfully send messages using e-mail, the OTPsender module needs to make the following settings:

  1. Specify the following parameters in the configuration file of the OTPsender module in the [email] section:

    ``password`` is password for authorization in the mail service;
    ``port`` is port for connecting to the SMTP server, port 465 is used by default;
    ``smtp_server`` is SMTP server that will be used to send mail;
    ``username`` is service user name in the mail service.
    
  2. Restart the web server, as well as the services of the OTPsender module:

    systemctl restart apache2
    systemctl restart aos-otp-sender*
    
  3. In the configuration file of the Dashboard module, change the value of the otp_sender_method parameter in the [DEFAULT] section from telegram to email.

  4. Restart the web server and caching service:

    systemctl restart apache2
    systemctl restart memcached