Whitebeam Object Definition

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Object Definition

SmtpRequest.SmtpBody

An SMTP header comprising a name and a value pair.

Elements

The SmtpRequest.SmtpBody struct has 5 elements:

Name Type/Value Range/Length Description
contentTypestring  Optional. The 'Content-Type' for this body element.
base64encodebool  Optional. The Presentation Engine will attempt to determine whether or not to base64 encode a portion of the body. The algorithm is very simple : If the contentType does not start with 'text/' then it will be encoded. Set this property to force encoding (or false to prevent encoding). Note the Presentation Engine is only capable of encoding Binary objects. (See RFC2045, section 6.8).
quotedPrintablebool  Optional. For text elements with this property set to 'true' the Whitebeam will apply "Quoted Printable" encoding to the text before it is sent built into the email (See RFC2045, section 6.7).
headersMetaData  Optional. Only used for a multipart encoding. If present for portion of the body then this is the set of headers to output before the content of that part.
subTableMetaData  Optional. If present Whitebeam will use the contents of the object to attempt text-substitutions on the message element. Substitution occurs by searching the body for instances of '$name' and then attempting to resolve 'name' as a property on the subTable. If found the $name is replaced by the value. This will generally be much faster and less resource hungry than attempting the same operation using regular expressions in JavaScript.

Remarks

This object represents an SMTP header - either sent to - or returned from a remote server. Each instance of this object represents a single header. Multiple headers can have the same name.

Whitebeam release 1.3.36
(loadtime : 11ms)