Returns the content as Java object. The type of this object depends of the content itself. For example, the native format
of a content "text/plain" is normally an String object. The native format for a "multipart" message is always a subclass Multipart. For types of contents
which are unknown for the DataHandler system, an input stream is returned as content.
1 mail.mimeMessage.getContent
<mail.mimeMessage.getContent>
<MimeMessage /> +
</mail.mimeMessage.getContent>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
EMimeMessage | MimeMessage |
Returns | |
---|---|
Type | Description |
Object |
Example
Obtain the content of a mimeMessage.
Copy
<xsql-script name=''> <body> <select prefix='m_'> <columns>mail_message</columns> <from table='wic_user_maildata ' /> <where> uid = 1949240 </where> </select> <set name='m_mimeMessage'> <mail.mimeMessage> <m_mail_message /> </mail.mimeMessage> </set> <println> <mail.mimeMessage.getContent><m_mimeMessage /></mail.mimeMessage.getContent> </println> </body> </xsql-script>
Sending of message making use of the smtphost attribute to indicate a determinated server of outgoing email.