PHP code example of infrajs / mail
1. Go to this page and download the library: Download infrajs/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/ */
infrajs / mail example snippets
Mail::$conf['from']='[email protected]';
use infrajs\mail\Mail;
Mail::toAdmin($subject, $from, $body, $debug = false);
Mail::fromAdmin($subject, $to, $body);
Mail::check($email);//Проверка является ли строка почтовым адресом