Aplus Framework Docs

Header
in package

Class Header.

Table of Contents

Constants

AUTO_SUBMITTED  : string = 'Auto-Submitted'
BCC  : string = 'Bcc'
CC  : string = 'Cc'
COMMENTS  : string = 'Comments'
CONTENT_TYPE  : string = 'Content-Type'
DATE  : string = 'Date'
DKIM_SIGNATURE  : string = 'DKIM-Signature'
FROM  : string = 'From'
IN_REPLY_TO  : string = 'In-Reply-To'
KEYWORDS  : string = 'Keywords'
LIST_UNSUBSCRIBE_POST  : string = 'List-Unsubscribe-Post'
MESSAGE_ID  : string = 'Message-ID'
MIME_VERSION  : string = 'MIME-Version'
MT_PRIORITY  : string = 'MT-Priority'
ORIGINAL_FROM  : string = 'Original-From'
ORIGINAL_RECIPIENT  : string = 'Original-Recipient'
ORIGINAL_SUBJECT  : string = 'Original-Subject'
PRIORITY  : string = 'Priority'
RECEIVED  : string = 'Received'
RECEIVED_SPF  : string = 'Received-SPF'
REFERENCES  : string = 'References'
REPLY_TO  : string = 'Reply-To'
RESENT_BCC  : string = 'Resent-Bcc'
RESENT_CC  : string = 'Resent-Cc'
RESENT_DATE  : string = 'Resent-Date'
RESENT_FROM  : string = 'Resent-From'
RESENT_MESSAGE_ID  : string = 'Resent-Message-ID'
RESENT_SENDER  : string = 'Resent-Sender'
RESENT_TO  : string = 'Resent-To'
RETURN_PATH  : string = 'Return-Path'
SENDER  : string = 'Sender'
SUBJECT  : string = 'Subject'
TO  : string = 'To'
X_MAILER  : string = 'X-Mailer'
X_PRIORITY  : string = 'X-Priority'

Properties

$headers  : array<string, string>

Methods

getName()  : string
Get a correct header name.
setName()  : void
Set a correct header name.

Constants

AUTO_SUBMITTED

public string AUTO_SUBMITTED = 'Auto-Submitted'

COMMENTS

public string COMMENTS = 'Comments'

CONTENT_TYPE

public string CONTENT_TYPE = 'Content-Type'

DATE

public string DATE = 'Date'

DKIM_SIGNATURE

public string DKIM_SIGNATURE = 'DKIM-Signature'

FROM

public string FROM = 'From'

IN_REPLY_TO

public string IN_REPLY_TO = 'In-Reply-To'

KEYWORDS

public string KEYWORDS = 'Keywords'

LIST_UNSUBSCRIBE_POST

public string LIST_UNSUBSCRIBE_POST = 'List-Unsubscribe-Post'

MESSAGE_ID

public string MESSAGE_ID = 'Message-ID'

MIME_VERSION

public string MIME_VERSION = 'MIME-Version'

MT_PRIORITY

public string MT_PRIORITY = 'MT-Priority'

ORIGINAL_FROM

public string ORIGINAL_FROM = 'Original-From'

ORIGINAL_RECIPIENT

public string ORIGINAL_RECIPIENT = 'Original-Recipient'

ORIGINAL_SUBJECT

public string ORIGINAL_SUBJECT = 'Original-Subject'

PRIORITY

public string PRIORITY = 'Priority'

RECEIVED

public string RECEIVED = 'Received'

RECEIVED_SPF

public string RECEIVED_SPF = 'Received-SPF'

REFERENCES

public string REFERENCES = 'References'

REPLY_TO

public string REPLY_TO = 'Reply-To'

RESENT_BCC

public string RESENT_BCC = 'Resent-Bcc'

RESENT_CC

public string RESENT_CC = 'Resent-Cc'

RESENT_DATE

public string RESENT_DATE = 'Resent-Date'

RESENT_FROM

public string RESENT_FROM = 'Resent-From'

RESENT_MESSAGE_ID

public string RESENT_MESSAGE_ID = 'Resent-Message-ID'

RESENT_SENDER

public string RESENT_SENDER = 'Resent-Sender'

RESENT_TO

public string RESENT_TO = 'Resent-To'

RETURN_PATH

public string RETURN_PATH = 'Return-Path'

SENDER

public string SENDER = 'Sender'

SUBJECT

public string SUBJECT = 'Subject'

X_MAILER

public string X_MAILER = 'X-Mailer'

X_PRIORITY

public string X_PRIORITY = 'X-Priority'

Properties

$headers

protected static array<string, string> $headers = ['auto-submitted' => 'Auto-Submitted', 'bcc' => 'Bcc', 'cc' => 'Cc', 'comments' => 'Comments', 'content-type' => 'Content-Type', 'date' => 'Date', 'dkim-signature' => 'DKIM-Signature', 'from' => 'From', 'in-reply-to' => 'In-Reply-To', 'keywords' => 'Keywords', 'list-unsubscribe-post' => 'List-Unsubscribe-Post', 'message-id' => 'Message-ID', 'mime-version' => 'MIME-Version', 'mt-priority' => 'MT-Priority', 'original-from' => 'Original-From', 'original-recipient' => 'Original-Recipient', 'original-subject' => 'Original-Subject', 'priority' => 'Priority', 'received' => 'Received', 'received-spf' => 'Received-SPF', 'references' => 'References', 'reply-to' => 'Reply-To', 'resent-bcc' => 'Resent-Bcc', 'resent-cc' => 'Resent-Cc', 'resent-date' => 'Resent-Date', 'resent-from' => 'Resent-From', 'resent-message-id' => 'Resent-Message-ID', 'resent-sender' => 'Resent-Sender', 'resent-to' => 'Resent-To', 'return-path' => 'Return-Path', 'sender' => 'Sender', 'subject' => 'Subject', 'to' => 'To', 'x-mailer' => 'X-Mailer', 'x-priority' => 'X-Priority']

Methods

getName()

Get a correct header name.

public static getName(string $name) : string
Parameters
$name : string

The header name in any case

Return values
string —

The correct name or the same if it is unknown

setName()

Set a correct header name.

public static setName(string $name) : void
Parameters
$name : string

The header name in the correct case


        
On this page

Search results