Classes

Method MIMEMessage():setAllHeaders() Foundation

Sets the contents of all header fields.

Syntax
:setAllHeaders( <aHeader> ) --> aOldHeader
Parameters
<aHeader> := {{ <cName>, <cContents> } }
A two column array must be passed for this parameter. It holds character strings defining the names and contents of all header fields of an e-mail.
Return

The method returns a two column array holding the names and contents of all previous header fields of an e-mail.

Description

This method can be used to define the contents of all header fields of an e-mail message within one method call. The first column of the passed array contains the names of the header fields and the second column their contents. Please take into consideration, that this call will erase all headers which are already set.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.