PHP 8.3.31
Preview: DraftEmail.php Size: 1.10 KB
/proc/thread-self/root/home/getspomw/itechservicellc.com/vendor/symfony/mime/DraftEmail.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Mime;

use Symfony\Component\Mime\Header\Headers;
use Symfony\Component\Mime\Part\AbstractPart;

/**
 * @author Kevin Bond <kevinbond@gmail.com>
 */
class DraftEmail extends Email
{
    public function __construct(?Headers $headers = null, ?AbstractPart $body = null)
    {
        parent::__construct($headers, $body);

        $this->getHeaders()->addTextHeader('X-Unsent', '1');
    }

    /**
     * Override default behavior as draft emails do not require From/Sender/Date/Message-ID headers.
     * These are added by the client that actually sends the email.
     */
    public function getPreparedHeaders(): Headers
    {
        $headers = clone $this->getHeaders();

        if (!$headers->has('MIME-Version')) {
            $headers->addTextHeader('MIME-Version', '1.0');
        }

        $headers->remove('Bcc');

        return $headers;
    }
}

Directory Contents

Dirs: 9 × Files: 17

Name Size Perms Modified Actions
Crypto DIR
- drwxr-xr-x 2025-11-18 19:24:12
Edit Download
- drwxr-xr-x 2025-11-18 19:24:12
Edit Download
Encoder DIR
- drwxr-xr-x 2025-11-18 19:24:12
Edit Download
Exception DIR
- drwxr-xr-x 2025-11-18 19:24:12
Edit Download
Header DIR
- drwxr-xr-x 2025-11-18 19:24:12
Edit Download
- drwxr-xr-x 2025-11-18 19:24:12
Edit Download
Part DIR
- drwxr-xr-x 2025-11-18 19:24:12
Edit Download
Resources DIR
- drwxr-xr-x 2025-11-18 19:24:12
Edit Download
Test DIR
- drwxr-xr-x 2025-11-18 19:24:12
Edit Download
4.44 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
418 B lrw-r--r-- 2025-10-28 20:23:42
Edit Download
1.12 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
9.13 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
1.42 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
1.10 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
14.98 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
2.37 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
1.98 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
1.04 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
4.33 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
5.04 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
826 B lrw-r--r-- 2025-10-28 20:23:42
Edit Download
191.01 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
777 B lrw-r--r-- 2025-10-28 20:23:42
Edit Download
2.38 KB lrw-r--r-- 2025-10-28 20:23:42
Edit Download
459 B lrw-r--r-- 2025-10-28 20:23:42
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).