PHP code example of advicepharmagroup / mailup

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

    

advicepharmagroup / mailup example snippets


...

'mailup' => [
    'host'       => env('MAILUP_HOST'),
    'user'       => env('MAILUP_USER'),
    'secret'     => env('MAILUP_SECRET'),
    'force_html' => true,
],

...


'mailers' => [

    ...

    'mailup' => [
        'transport'  => 'mailup',
    ],
],

Route::get('/mail', function () {

    Mail::raw('Hello world', function (Message $message) {
        $message
            ->to('[email protected]')
            ->from('[email protected]');
    });

});