Returns the Content-Type of the content of this part. Returns null if the Content-Type can not be determined. The MIME typing system is used to name Content-types.

1 mail.mimePart.getContentType

<mail.mimePart.getContentType>
    <Part /> +
</mail.mimePart.getContentType>
Example

Obtain the ContentType.

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>
    	
    	<set name='m_mail_parts_array'>
    		<mail.mimePart.getParts><m_mimeMessage /></mail.mimePart.getParts>
    	</set>  
    	<iterator name='MimePart' index='idx'>
    		<in><m_mail_parts_array /></in>
    		<do>
  		
				<println>
					<mail.mimePart.getContentType>
					 	<MimePart />
					</mail.mimePart.getContentType>   	
				</println>
	
    		</do>
    	</iterator>	    	  	 	

    </body>
</xsql-script>