Skip to content

ToXml

Retrieves the serialized XML representation of the message. Attachment contents are included as Base64 data.

1
myMessage.ToXml():Xml

Returns

The message as XML.

Examples

Log the serialized message

1
2
var msg = $Messages.New('[email protected]', 'Test', 'Hello');
console.log(msg.ToXml().OuterXml());

See Also