This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
php-frs/lib/Frs/Output/Transport/MailTransport.php

37 lines
685 B
PHP

<?php
namespace Frs\Output\Transport;
class MailTransport implements TransportInterface
{
private $recipients;
private $subject;
private $headers;
private $content;
public function setContent($content)
{
$this->content = $content;
}
public function setRecipients($recipients)
{
$this->recipients = $recipients;
}
public function setSubject($subject)
{
$this->subject = $subject;
}
public function setHeaders($headers)
{
$this->headers = $headers;
}
public function transmit()
{
return mail($this->recipients, $this->subject, $this->content, $this->headers);
}
}