mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
42 lines
1011 B
PHP
42 lines
1011 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Control\Tests\Email\EmailTest;
|
|
|
|
use SilverStripe\Control\Email\Mailer;
|
|
|
|
class TestMailer extends Mailer
|
|
{
|
|
|
|
public function sendHTML(
|
|
$to,
|
|
$from,
|
|
$subject,
|
|
$htmlContent,
|
|
$attachedFiles = false,
|
|
$customheaders = false,
|
|
$plainContent = false
|
|
) {
|
|
return array(
|
|
'to' => $to,
|
|
'from' => $from,
|
|
'subject' => $subject,
|
|
'content' => $htmlContent,
|
|
'files' => $attachedFiles,
|
|
'customheaders' => $customheaders,
|
|
'plaincontent' => $plainContent
|
|
);
|
|
}
|
|
|
|
public function sendPlain($to, $from, $subject, $plainContent, $attachedFiles = false, $customheaders = false)
|
|
{
|
|
return array(
|
|
'to' => $to,
|
|
'from' => $from,
|
|
'subject' => $subject,
|
|
'content' => $plainContent,
|
|
'files' => $attachedFiles,
|
|
'customheaders' => $customheaders
|
|
);
|
|
}
|
|
}
|