PHP code example of queencitycodefactory / cakemailslurp

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

    

queencitycodefactory / cakemailslurp example snippets


Plugin::load('CakeMailSlurp', ['bootstrap' => false, 'routes' => false]);

$this->addPlugin('CakeMailSlurp', ['bootstrap' => true, 'routes' => false]);

'EmailTransport' => [
    'default' => [
        'className' => MailSlurpTransport::class,
        /*
         * The following keys are used in MailSlurp transports:
         */
        'inboxId' => 'your-inbox-id-goes-here', // The Inbox Id from MailSlurp
        'apiKey' => 'your-api-key-goes-here', // The API Key from MailSlurp
        'email' => 'your-email-goes-here', // The Email Address for the above Inbox Id
        'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
    ],
    'debug' => [
        'className' => 'Debug',
    ],
],