PHP code example of fyre / mail

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

    

fyre / mail example snippets


use Fyre\Mail\Mail;

Mail::clear();

$config = Mail::getConfig($key);

$config = Mail::getConfig();

$key = Mail::getKey($mailer);

$hasConfig = Mail::hasConfig($key);

$isLoaded = Mail::isLoaded($key);

$mailer = Mail::load($options);

Mail::setConfig($key, $options);

Mail::setConfig($config);

$unloaded = Mail::unload($key);

$mailer = Mail::use($key);

$email = $mailer->email();

$charset = $mailer->getCharset();

$client = $mailer->getCliet();

$mailer->send($email);

Mail::setConfig($key, $options);

$mailer = Mail::use($key);

Mail::setConfig($key, $options);

$mailer = Mail::use($key);

$email->addAttachments($attachments);

$email->addBcc($email, $name);

$email->addCc($email, $name);

$email->addReplyTo($email, $name);

$email->addTo($email, $name);

$attachments = $email->getAttachments();

$bcc = $email->getBcc();

$html = $email->getBodyHtml();

$text = $email->getBodyText();

$boundary = $email->getBoundary();

$cc = $email->getCc();

$charset = $email->getCharset();

$format = $email->getFormat();

$from = $email->getFrom();

$headers = $email->getHeaders();

$messageId = $email->getMessageId();

$priority = $email->getPriority();

$readReceipt = $email->getReadReceipt();

$recipients = $email->getRecipients();

$replyTo = $email->getReplyTo();

$returnPath = $email->getReturnPath();

$sender = $email->getSender();

$subject = $email->getSubject();

$to = $email->getTo();

$email->send();

$email->setAttachments($attachments);

$email->setBcc($emails);

$email->setBodyHtml($html);

$email->setBodyText($text);

$email->setCc($emails);

$email->setCharset($charset);

$email->setFormat($format);

$email->setFrom($email, $name);

$email->setHeaders($headers);

$email->setPriority($priority);

$email->setReadReceipt($email, $name);

$email->setReplyTo($emails);

$email->setReturnPath($email, $name);

$email->setSender($email, $name);

$email->setSubject($subject);

$email->setTo($emails);