Extracted from Pike v7.3 release 18 at 2002-03-27.
pike.roxen.com
[Top]
MIME
MIME.Message

Method MIME.Message()->cast()


Method cast

string MIME.Message()->cast(string dest_type)

Description

Casting the message object to a string will yield a byte stream suitable for transmitting the message over protocols such as ESMTP and NNTP.

The body will be encoded using the current transfer encoding, and subparts of a multipart will be collected recursively. If the message is a multipart and no boundary string has been set, one will be generated using MIME.generate_boundary.

See also

MIME.Message.create