PHP code example of skeeks / cms-mailer

1. Go to this page and download the library: Download skeeks/cms-mailer 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/ */

    

skeeks / cms-mailer example snippets



'components' =>
[
    'mailer' => [
        'class'         => 'skeeks\cms\mail\Mailer',
        'view'          =>
        [
            'theme' =>
            [
                'pathMap' =>
                [
                    '@app/mail' =>
                    [
                        '@app/mail',
                        '@skeeks/cms/mail/templates'
                    ]
                ]
            ]
        ]
    ],

    'mailerSettings' => [
        'class'         => 'skeeks\cms\mail\MailerSettings',
    ],

    'i18n' => [
        'translations' =>
        [
            'skeeks/mail' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/cms/mail/messages',
                'fileMap' => [
                    'skeeks/mail' => 'main.php',
                ],
            ]
        ]
    ],
],

'modules' =>
[
    'mailer' => [
        'class'         => 'skeeks\cms\mail\Module',
    ]
]


php composer.phar