Quantcast
Channel: Symantec Connect - Endpoint Management
Viewing all articles
Browse latest Browse all 7217

How to send attachment in the Automation Policy e-mail?

$
0
0

In IT Management Suite 7.6, you can add an attachment to the Automation Policy e-mail. Note that no UI changes are introduced and it is just a way to define attachment in the existing UI.

You can use this option for Send automated report e-mail task, Send automation policy e-mail task, etc.

To add an attachment to an e-mail, you must add some "markup" tokens to define the attachments and the body in the email body definition as follows:

<!-- SMP:[type];[name;mime] -->
[type] can be one of the following:
  • A/ATTACH/ATTACHMENT - to define attachment text. Everything until the next "markup" (or message end, if none) is treated as the attachment content.
  • F/FILE - to define a file name to be included (must be full pathname on Notification Server computer)
  • B/BODY/(none) - to define the body of the e-mail

[name] - the name of the attachment or file
[mime] - one of the encoding types "text/plain", "text/html" etc. If not specified, default is used or resolved by file type automatically.

EXAMPLE 1: to attach a report

<!-- SMP:A;report.htm -->
<html><body>%Unable to render embedded object: File (Results) not found.%</body></html>

<!-- SMP:B -->
<html><body>Please check attachment</html></body>

NB! The marker start should only have 1 space between "<!--" and "SMP:" to match.

EXAMPLE 2: to attach a particular file by path, used 'F'

<!-- SMP:F;C:\report1.htm -->

or 'A' with '@' before file name

<!-- SMP:A;@C:\report1.htm -->

EXAMPLE 3: to attach a ZIP document

<!-- SMP:ZA;report.html.zip -->

This content of the section will be zipped.

<!-- SMP:ZF;symantec-logs.zip;;c:\ProgramData\Symantec\SMP\Logs*.log -->

All .log files from the default folder will be zipped and added to the attachment as a single file.


Viewing all articles
Browse latest Browse all 7217

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>