OpenWGA 7.6 - TMLScript reference
MailMethod :
addAttachmentURL(url [, alternateFileName])
On object | |
Usage |
Adds an attachment to the mail by URL |
Description |
This method merely registers the given URL for attachment. Later when the mail is sent the Mail object will load the resource behind the URL and attach it to the mail. Note that the OpenWGA server itself will load the URL not the users browser. This process will not be able to use the access rights that the current user may have in his browser session but instead be "anonymous". So using an URL to a login-protected resource will fail. By default the name of the attached file will match the last URL part. You can explicitly specify a file name with parameter "alternateFileName". |
Parameters |
url (String): The URL of the resource to attach to the mail alternateFileName (String, Optional): A file name for the file attachment |
Allowed in script types |
|