Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
class Newsletter
{
private $mailer;
public function __construct()
{
$this->mailer = new Mailer('news@demo.de','Demo News','Reply-To: reply@demo.de');
}
public function send($recipients, $subject, $message) {
foreach ($recipients as $to) {
$this->mailer->send($to, $subject, $message);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment