Php::mail()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 4
1
<?php
2
3
/**
4
 * This file is part of slick/mail package
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Slick\Mail\Transport\Vendor;
11
12
/**
13
 * PHP mail class wrapper
14
 *
15
 * @package Slick\Mail\Transport\Vendor
16
 * @author  Filipe Silva <[email protected]>
17
 *
18
 * @codeCoverageIgnore
19
 */
20
class Php
21
{
22
23
    /**
24
     * Sends an email.
25
     *
26
     * @param string $to
27
     * @param string $subject
28
     * @param string $message
29
     * @param string $additionalHeaders
30
     *
31
     * @link http://php.net/manual/en/function.mail.php
32
     *
33
     * @return bool
34
     */
35
    public function mail($to, $subject, $message, $additionalHeaders = null)
36
    {
37
        return mail($to, $subject, $message, $additionalHeaders);
38
    }
39
}