max-s-upper / transfer_creator
There is no license information available for the latest version (v1.0.2) of this package.
Sends a message to mail or telegram
v1.0.2
2019-12-18 19:47 UTC
Requires
- php: >=5.4.0
- max-s-upper/log_to_telegram: >=2.0.0
This package is auto-updated.
Last update: 2024-04-19 04:55:33 UTC
README
Method send($data) sends a message to mail or telegram, where parameter $data is an associative array: $data example for sending to default Telegram bot: @eshop_logs_bot $data = array( "telegram" => array( "message" => "Here we go" ) ); $data example for sending to email: $data = array( "mail" => array( "host" => "smtp.gmail.com", "port" => 465, "encryption" => "ssl", "username" => "*********@gmail.com", "password" => "********", "subject" => "Awesome subject", "fromEmail" => "*********@gmail.com", "fromName" => "Max", "toEmail" => "*********@gmail.com", "toName" => "Me", "message" => "Here is my awesome message for myself:)" ) );