PHP code example of codedive-io / laravel-ncloud-mail-driver

1. Go to this page and download the library: Download codedive-io/laravel-ncloud-mail-driver 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/ */

    

codedive-io / laravel-ncloud-mail-driver example snippets


$recipient = [
    new Address('[email protected]', '수신자이름'),
];
Mail::driver('ncloud')->to($recipient)->send(new TestMail());
bash
php artisan vendor:publish --tag=laravel_ncloud_sdk_config
bash
php artisan vendor:publish --tag=laravel_ncloud_mail_driver_config