msg:body

March 26, 2020 Contributors

Name

msg:body — Set the message body (minus headers) if provided

Synopsis

msg:body(...);

...: mixed, optional

Description

This function sets the message body (minus headers) if it is provided and returns the message body (minus headers). This applies to the body (not headers), without decoding transfer encoding.

Note

When called without parameters, this function returns content that does not have the end-of-data marker (CRLF.CRLF). However, when setting the message body you must append the end-of-data marker to the content.

If you are modifying content be sure set readonly to false using the msg:mime function.

Enable this function with the statement require('msys.extended.message');.