PHP code example of akbsit / helper-smtp
1. Go to this page and download the library: Download akbsit/helper-smtp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
akbsit / helper-smtp example snippets
$oSmtpHelper = new SmtpHelper([
'maillogin' => '[email protected]',
'mailpass' => '*********',
'from' => 'Falbar',
'host' => 'ssl://smtp.yandex.ru',
'port' => 465
]);
$bStatus = $oSmtpHelper->send(
'[email protected]',
'Mail title',
'Mail text'
);