Setting up mail for gmail service
Always use "Application Passwords" for authorization. See instructions. Instructions for setting up smtp from Gmail.
To receive notifications about missed calls by email, you need to configure the SMTP client. Detailed information about notifications in MikoPBX is reviewed here. As part of this instruction, an example of setting up missed call notifications for the Gmail mail service will be considered.
Enter the IP address of the MikoPBX PBX in the browser and go to System → Mail Settings
SMTP Client Settings for Gmail service:
SMPT host - smtp.gmail.com
SMPT port - 465 (Customer Service port)
SMPT login and Sender address- the E-mail from which messages about missed calls will be sent
SMPT Password - the email password required for authorization
Encryption Method - Use TLS
Save the entered settings and proceed to setting up your email account. A feature of the Gmail service is that access to your account is automatically denied to untrusted applications, which include MikoPBX, so you need to manually allow access to these applications (setup instructions are posted here).
Go back to System → Mail Settings. We will send a test letter to the e-mail of any service. In case of successful testing, a test email will be sent to the email address you specified.
You can read about how to set up a letter template to create an E-mail notification here.
Setting up mail and notifications
The Mail and Notifications section in MikoPBX allows you to configure sending system notifications via email. Here, administrators specify SMTP server parameters, define notification events such as voice messages or system errors, and edit email templates. This section helps to promptly inform users and administrators about important events, ensuring effective control over the system.
To receive notifications about missed calls and voicemail messages by email, you need to configure the SMTP client. SMTP (Simple Mail Transfer Protocol) is used to send e-mail over the Internet. SMTP clients interact with an SMTP server that sends email.
SMTP host - address of the mail server
SMTP port - the port of the mail server
SMTP login, SMTP password - authorization parameters
Sender's address - Emails will be sent on behalf of this address Email of the system administrator - all system notifications will be sent to this email address, for example, about the lack of disk space. When changing and saving the settings, a test email will be sent to this address
Use TLS - activates the use of encryption when connecting to the server, to connect via SSL, you need to add a protocol description to the server address
Validate server certificate - in some cases it is necessary to disable it when using self-signed certificates
Use mail motifications - allows you to enable/disable all email alerts, including voice mail
If the server supports a secure connection only over SSL, then you can explicitly specify the protocol in the "SMTP host" field, for example:
Setting up notifications for mail services:
It is possible to customize the address and template for notifications about missed calls:
Email for missed notifications - by default, missed notifications are sent to the email specified in the employee card. If the call cannot be matched with an employee or email is not specified, the call will be sent to this "shared" address
The subject, text, and footer of the letter may contain parameters in the form of PARAMETER_NAME
List of available "parameters":
NOTIFICATION_MISSEDCAUSE - currently always takes the value "NOANSWER", i.e. a missed call
NOTIFICATION_CALLERID - who was the call from
NOTIFICATION_TO - who was the call to
NOTIFICATION_DURATION - duration in seconds
NOTIFICATION_DATE - date of the call
It is possible to set up an address and a template for a voicemail notification:
Voice mail will be sent to each employee who missed the call (if the email is specified in his card).
Voicemail will always be sent to the "Email address to receive all voice mail records"
It is possible to listen to the voicemail recording from the PBX call history
The following "parameters" can be used in the subject, body and footer of the email:
VM_DATE - date and time
VM_CALLERID - caller's callerid, consists of name and num, example "Alex Magnet" <101>
VM_DUR - message duration
VM_CALLER_NAME - caller's name (taken from VM_CALLERID)
VM_CALLER_NUM - caller's phone number (taken from VM_CALLERID)
To specify a parameter, you need to use a construction of the form PARAMETER_NAME.
Click Save to complete the setup.