aberdnikov / meerkat-email

Email module for MeerkatCMF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

meerkat-email

Модуль почты для MeerkatCMF


\Meerkat\Email\Email::send('recipient@gmail.com', 'Subject', 'Message');

Сообщение будет отправлено от имени Kohana::$config->load('meerkat/email.from')


 'native',
    /**
     * To use secure connections with SMTP, set "port" to 465 instead of 25.
     * To enable TLS, set "encryption" to "tls".
     * 
     * Note for SMTP, 'auth' key no longer exists as it did in 2.3.x helper
     * Simply specifying a username and password is enough for all normal auth methods
     * as they are autodeteccted in Swiftmailer 4
     * 
     * PopB4Smtp is not supported in this module as I had no way to test it but 
     * SwiftMailer 4 does have a PopBeforeSMTP plugin so it shouldn't be hard to implement
     * 
     * Encryption can be one of 'ssl' or 'tls' (both require non-default PHP extensions
     *
     * Driver options:
     * @param   null    native: no options
     * @param   string  sendmail: executable path, with -bs or equivalent attached
     * @param   array   smtp: hostname, (username), (password), (port), (encryption)
     */
    'options' => NULL,
    'from' => array(
        'sender@gmail.com', 'Техническая поддержка'
    ),
);

Скопируйте файл конфигурации ./config/meerkat/email.php себе в APPPATH и исправьте отправителя

About

Email module for MeerkatCMF

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:PHP 100.0%