Messages/Email.php

appwrite · packages/messaging/src/Messages/Email.php · php · BSD-3-Clause
email, tag:knn-classified

Module exposing: Email

// Source: https://github.com/appwrite/appwrite | License: BSD-3-Clause | Copyright 2019 Appwrite (https://appwrite.io) and individual contributors
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace Utopia\Messaging\Messages;

use Utopia\Messaging\Exception\InvalidArgumentException;
use Utopia\Messaging\Message;
use Utopia\Messaging\Messages\Email\Attachment;

class Email implements Message
{
    /** Headers the message already writes itself; a caller value would collide at send time. */
    private const array RESERVED_HEADERS = [
        'date', 'from', 'to', 'cc', 'bcc', 'reply-to',
        'subject', 'message-id', 'mime-version',
        'content-type', 'content-transfer-encoding',
    ];

    private ?string $origin = null;

    /**
     * @var array<arr

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key