PHP code example of naffiq / yii2-mailin

1. Go to this page and download the library: Download naffiq/yii2-mailin 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/ */

    

naffiq / yii2-mailin example snippets




return [
    // Your config 
    'components' => [
        // ...
        'mailin' => [
            'class' => 'naffiq\mailin\Mailin',
            'apiKey' => SENDINBLUE_API_KEY,
            // 'apiUrl' => ''
        ]
    ]
]


 
$mailin = \Yii::$app->mailin->getClient();

// Use $mailin object