PHP code example of bitweb / mail

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

    

bitweb / mail example snippets


[
    'to' => [
        'email' => '[email protected]',
        'name' => 'You'
    ],
    'cc' => [
        [
            'email' => '[email protected]',
            'name' => 'Me'
        ]
    ],
    'bcc' => [
        [
            'email' => '[email protected]',
            'name' => 'Me'
        ]
    ],
    'from' => [
        'email' => '[email protected]',
        'name' => 'Me'
    ],
    'subject' => 'Application rejected',
    'body' => 'Your application has been rejected.',
    'attachments' => [
        'path/to/my/file.file'
    ]
]