Return an ObjectDataSource with an attach for a mail.

1 mail.attach

<mail.attach
    type='text/html'
    name='file.html'
    cid='xxx'
    zip='true'
>
    <object2InStream /> +
</mail.attach>
Example

Attach for the mail.

Copy
<xsql-script name='mail_attach_sample'>
	<body>
		<mail
			smtphost='mail.deister.net'
			from='pcasellas@deister.es'
			to='pcc'
			subject='Test 2'
			>
			<content>
				Email with attached file sent through
				Axional Studio XSQL-Script.
			</content>
			<attachs>
				<mail.attach type='image/jpeg'>
					<file name='p:\nevada.jpg' type='absolute' />
				</mail.attach>
			</attachs>
		</mail>
	</body>


</xsql-script>