JMSG > Tutorial > Add attachment

The following example shows you how to create message item and add attachment.