cli:emailing_reports
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cli:emailing_reports [2017/07/27 18:25] – [Configuration File] Gerard Nicol | cli:emailing_reports [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| This can be achieved using the following methods: | This can be achieved using the following methods: | ||
| - | - Via a command line SMTP agenet | + | - Via a command line SMTP agent such as [[https:// |
| - Via the Send Email action of Windows Scheduler. | - Via the Send Email action of Windows Scheduler. | ||
| - Via the TapeTrack SMTP PowerShell script. | - Via the TapeTrack SMTP PowerShell script. | ||
| Line 17: | Line 17: | ||
| The TapeTrack SMTP PowerShell Script is digitally signed with GazillaByte' | The TapeTrack SMTP PowerShell Script is digitally signed with GazillaByte' | ||
| - | To enabled signed scripts: | + | To enabled signed scripts, open Windows PowerShell as the Windows Administrator. |
| + | |||
| + | {{:cli: | ||
| - | - Open Windows PowerShell as the Windows Administrator. | + | Run the command '' |
| - | - Run the command '' | + | |
| - | {{: | + | {{: |
| - | + | ||
| - | {{: | + | |
| ==== Command Line Arguments ==== | ==== Command Line Arguments ==== | ||
| Line 30: | Line 29: | ||
| The PowerShell script takes the following arguments: | The PowerShell script takes the following arguments: | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| Line 44: | Line 43: | ||
| ==== Configuration File ==== | ==== Configuration File ==== | ||
| + | The Configuration File instructs the script what to send, who to send it to, and who to send it from. | ||
| + | |||
| + | The file consists of records that contain a control character, followed by an argument. The control character must be in the first byte of each record. | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| < | < | ||
| - | . | ||
| - | . This is a sample email configuration file used by the TMSSSMTP.ps1 Powershell Script. | ||
| - | . Each new record starts with a control character, fillowed by an argument that is used to | ||
| - | . determine how the email is processed. The control character must start on the first character of each record. | ||
| - | . | ||
| - | . F=From (1 only) | ||
| - | . T=To (1 or more) | ||
| - | . C=CC (1 or more) | ||
| - | . S=Subject (1 only) | ||
| - | . B=Body text (1 or more) | ||
| - | . A=path to attachment file (1 or more) | ||
| - | . .=comment. | ||
| - | . | ||
| Fsomebody@gazillabyte.com | Fsomebody@gazillabyte.com | ||
| Tsomebody@gazillabyte.com | Tsomebody@gazillabyte.com | ||
| - | Tsomebodyelse@gazillabyte.com | + | Csomebodyelse@gazillabyte.com |
| BPlease see attached file. | BPlease see attached file. | ||
| BTo change who receives this email please edit the email.cfg file used by TMSSEmail.ps1 | BTo change who receives this email please edit the email.cfg file used by TMSSEmail.ps1 | ||
| Ainventory.txt | Ainventory.txt | ||
| SInventory Report | SInventory Report | ||
| + | </ | ||
| + | |||
| + | ===== Examples ===== | ||
| + | |||
| + | ==== Email Scratch Report ==== | ||
| + | |||
| + | < | ||
| + | TMSS10Inventory -S batch: | ||
| + | PowerShell -config scratch.cfg -server smtp.tapetrack.com -port 25 | ||
| </ | </ | ||
cli/emailing_reports.1501179951.txt.gz · Last modified: 2025/01/21 22:07 (external edit)
