OPS self.send_email
You could send an e-mail message with the aid of the send_email class method.
def self.send_email ops_ip_address, api_extension, to, http_api_service_port=7780, message=nil, subject=nil, from=nil, username=nil, password=nil
Method parameters
Parameter name | Value | Description | Default value | Mandatory |
ops_ip_address | string value e.g. '192.168.0.1' |
IP address of Ozeki Phone System PBX. | (None) | Yes |
api_extension | string value e.g. '9999' |
The Ozeki Phone System API extension phone number. | nil | Yes |
to | string value e.g. 'recipient@company.com' |
Recipient of the e-mail message. | (None) | Yes |
http_api_service_port | int value e.g. 7780 |
The Ozeki Phone System HTTP API service listener port. | 7780 | No |
message | string value e.g. 'Hello world!' |
Content of the e-mail message. | Empty string | No |
subject | string value e.g. 'Test' |
Subject of the e-mail message. | Empty string | No |
from | string value e.g. 'sender@company.com' |
Sender of the e-mail message. | Empty string | No |
username | string value, e.g. 'admin' |
The username to connect Ozeki Phone System PBX. | nil | No |
password | string value, e.g. 'password' |
The password for the given username. | nil | No |
Example
OPS.send_email '192.168.0.1', '9999', 'recipient@company.hu', 7780, 't2', 't1', nil, 'admin', 'password'