summaryrefslogtreecommitdiff
path: root/app/Core/Mail/Transport/Sendmail.php
blob: 039be70545d5f82400ce1545674b3ef28adbd7ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace Kanboard\Core\Mail\Transport;

use Swift_SendmailTransport;

/**
 * PHP Mail Handler
 *
 * @package  transport
 * @author   Frederic Guillot
 */
class Sendmail extends Mail
{
    /**
     * Get SwiftMailer transport
     *
     * @access protected
     * @return \Swift_Transport|\Swift_MailTransport|\Swift_SmtpTransport|\Swift_SendmailTransport
     */
    protected function getTransport()
    {
        return Swift_SendmailTransport::newInstance(MAIL_SENDMAIL_COMMAND);
    }
}