Example #1
0
<?php

$app = (require __DIR__ . '/../bootstrap/start.php');
$mail = new \CatLab\Mailer\Models\Mail();
$to = new \CatLab\Mailer\Collections\ContactCollection();
$to[] = '*****@*****.**';
$to[] = '*****@*****.**';
$mail->setTo($to);
$mail->setFrom('*****@*****.**');
$mail->setSubject('This is a test');
$mail->setText('This is an example text message.');
\CatLab\Mailer\Mailer::getInstance()->send($mail);
Example #2
0
 public function sendConfirmationEmail(Module $module)
 {
     return;
     $template = new Template('CatLab/Accounts/mails/confirmation.phpt');
     $template->set('user', $this);
     $mail = new Mail();
     $mail->setSubject('Email verification');
     $mail->setTemplate($template);
     $mail->getTo()->add($this->getEmail());
     $mail->setFrom(Config::get('mailer.from.email'));
     Mailer::getInstance()->send($mail);
 }