PHP code example of coffeebreaks / mail
1. Go to this page and download the library: Download coffeebreaks/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/ */
coffeebreaks / mail example snippets
$mail = new \coffeebreaks\Mail();
$mail->config('smtp.your-host.com', 'your-user',
'you-pass', port);
$mail->add('[email protected]', 'Suport',
'[email protected]', 'Test classe Mail',
"This is a email with <b>PhpMailer</b> and generic class <i>Mail</i>");
if ($mail->getResult()){
echo "Success :)";
}