PHP code example of webfiori / mailer
1. Go to this page and download the library: Download webfiori/mailer 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/ */
webfiori / mailer example snippets
php
//Set subject
$email->setSubject('Hello World From PHP 😀');
php
//Specify who will receive the message
$email->addTo('[email protected]');
php
//Finally, send.
$email->send();
php
foreach ($email->getLog() as $logEvent) {
echo ' Command: '.$logEvent['command'];
echo ' Code: '.$logEvent['response-code'];
echo ' Message: '.$logEvent['response-message'];
}