PHP code example of valdir / notification

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

    

valdir / notification example snippets


<? php

tification\Email;

$email = new Email (2, "mail.host.com", "[email protected]", "your-pass", "smtp secure (tls / ssl)", "port (587)","[email protected]", "From Name");

$email-> sendEmail ("SUbject", "Content", "[email protected]", "Replay Name", "[email protected]", "Address Name");