PHP code example of toteph42 / identity_switch

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

    

toteph42 / identity_switch example snippets


// Log IMAP conversation to <log_dir>/imap.log or to syslog
$config['imap_debug'] = true;
// Log sent messages to <log_dir>/sendmail.log or to syslog
$config['smtp_log'] = true;

// Log SMTP conversation to <log_dir>/smtp or to syslog
$config['smtp_debug'] = true;