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>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atype | string | Type of file | |||
Aname | string | Name of the file. | |||
Acid | string | Alias of a file. | |||
Azip | string | Indicate if it is compressed. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Eobject2InStream | object2InStream |
Returns | |
---|---|
Type | Description |
ObjectDataSource |
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>