Classes

Method MIMEMessage():addHeader() Foundation

Adds a header field.

Syntax
:addHeader( <cName>, <xValue> ) --> NIL
Parameters
<cName>
This parameter is a character string describing the name of the e-mail's header field to add.
<xValue>
This value is a character string of an object which is added to the header. If this parameter is an object, it must have a method :getString()
Return

The return value is NIL.

Description

The method :addHeader() is used to add header fields in an e-mail for which no specific method exists in the MIMEMessage class. If <cName> is "From", "Date", "subject", "content-type" or "content-transfer-encoding" then <cValue> is not added but replaced. Examples are a reply address, carbon copy address or blind copy address fields:

oMimeMessage:addHeader( "Reply-To", "user1@mail.com" ) 
oMimeMessage:addHeader( "CC"      , "user2@mail.com" ) 
oMimeMessage:addHeader( "BCC"     , "user3@mail.com" ) 

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.